/* ============================================================
   TWEARY - Main Stylesheet
   Social Media Management Platform
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --secondary: #636e72;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --info: #74b9ff;
    --purple: #a29bfe;
    
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-input: #16162a;
    
    --text-primary: #ffffff;
    --text-secondary: #b2b2d0;
    --text-muted: #6c6c8a;
    
    --border-color: #2a2a45;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOP HEADER ===== */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    position: relative;
}

.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-search input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px 8px 36px;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 240px;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary);
    width: 300px;
}

/* Notifications */
.header-notifications {
    position: relative;
}

.notification-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.notification-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Menu */
.header-user {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--bg-card);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-header a {
    font-size: 0.8rem;
    color: var(--primary-light);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.text-danger {
    color: var(--danger) !important;
}

/* Notification Dropdown */
.notification-dropdown {
    width: 360px;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-card-hover);
}

.notification-item.unread {
    background: rgba(108, 92, 231, 0.08);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 0.9rem;
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 32px;
    flex: 1;
}

.public-content {
    min-height: 100vh;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-header-actions {
    display: flex;
    gap: 12px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.card-full {
    grid-column: 1 / -1;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.up {
    color: var(--success);
}

.stat-change.down {
    color: var(--danger);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
    text-align: center;
}

.quick-action-card:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-action-card i {
    font-size: 1.8rem;
    color: var(--primary);
}

.quick-action-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ===== POST LIST ===== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.post-item:hover {
    background: var(--bg-card-hover);
}

.post-content {
    flex: 1;
}

.post-content p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-platforms {
    display: flex;
    gap: 6px;
}

.post-platforms i {
    font-size: 0.9rem;
}

.post-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== ACCOUNT LIST ===== */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-info i {
    font-size: 1.5rem;
}

.account-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.account-platform {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== ANALYTICS MINI ===== */
.analytics-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.analytics-mini-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
}

.analytics-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.analytics-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #00a381;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #2d3436;
}

.btn-warning:hover {
    background: #fdcb6e;
    color: #2d3436;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d63031;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
}

.badge-success {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(253, 203, 110, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(225, 112, 85, 0.2);
    color: var(--danger);
}

.badge-info {
    background: rgba(116, 185, 255, 0.2);
    color: var(--info);
}

.badge-secondary {
    background: rgba(99, 110, 114, 0.2);
    color: var(--text-muted);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group > i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    z-index: 1;
}

.input-group input,
.input-group select,
.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="url"],
.input-group input[type="date"],
.input-group input[type="time"] {
    padding-left: 36px !important;
}


.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 1;
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary-light);
}

.form-select {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

/* Toggle Switch */
.form-group .toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-group .toggle-label input {
    display: none;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.form-group .toggle-label input:checked + .toggle-switch {
    background: var(--primary);
}

.form-group .toggle-label input:checked + .toggle-switch::after {
    left: 23px;
    background: white;
}

.toggle-text {
    flex: 1;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(0, 184, 148, 0.15);
    border: 1px solid rgba(0, 184, 148, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(225, 112, 85, 0.15);
    border: 1px solid rgba(225, 112, 85, 0.3);
    color: var(--danger);
}

.alert-info {
    background: rgba(116, 185, 255, 0.15);
    border: 1px solid rgba(116, 185, 255, 0.3);
    color: var(--info);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.15);
    border: 1px solid rgba(253, 203, 110, 0.3);
    color: var(--warning);
}

.alert-danger {
    background: rgba(225, 112, 85, 0.15);
    border: 1px solid rgba(225, 112, 85, 0.3);
    color: var(--danger);
}

.alert-dismissible {
    position: relative;
    padding-right: 40px;
}

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== AUTH PAGES ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-primary);
    background-image: radial-gradient(ellipse at top, rgba(108, 92, 231, 0.1) 0%, transparent 50%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: white;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-light);
    font-weight: 600;
}

/* ===== SOCIAL LOGIN BUTTONS ===== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.social-login-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-login-buttons .btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
}

.social-login-buttons .btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-login-buttons .btn-google:hover {
    border-color: #4285F4;
    color: #4285F4;
}

.social-login-buttons .btn-facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.social-login-buttons .btn-social i {
    font-size: 1.1rem;
}

.social-login-buttons .btn-google i {
    color: #4285F4;
}

.social-login-buttons .btn-facebook i {
    color: #1877F2;
}

/* ===== COMPOSE LAYOUT ===== */
.compose-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.schedule-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Account Checkboxes */
.account-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.account-checkbox:hover {
    background: var(--bg-card-hover);
}

.account-checkbox input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.account-checkbox-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.account-checkbox-info i {
    font-size: 1.3rem;
}

.account-checkbox-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Post Preview */
.post-preview {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.preview-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.preview-user strong {
    display: block;
    font-size: 0.9rem;
}

.preview-user span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preview-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.preview-image {
    margin: 0 -16px 12px -16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Media Selector */
.media-grid-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.media-option {
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid transparent;
    transition: var(--transition);
}

.media-option:hover {
    border-color: var(--primary);
}

.media-option input:checked + img,
.media-option input:checked ~ .media-video-icon {
    border-color: var(--primary);
}

.media-option input {
    display: none;
}

.media-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-video-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
}

.media-video-icon i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.media-video-icon span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Inline Media Upload (Compose Page) */
.media-upload-inline {
    margin-top: 8px;
}

.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.upload-dropzone i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-dropzone p {
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.upload-dropzone small {
    color: var(--text-muted);
}

.upload-dropzone a {
    color: var(--primary);
    text-decoration: underline;
}

#inlineUploadPreview {
    position: relative;
    display: inline-block;
    margin-top: 12px;
}

#inlineUploadPreview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
}

#inlineUploadRemove {
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    font-size: 0.75rem;
}

#inlineUploadRemove:hover {
    background: #c0392b;
}


/* ===== FILTER TABS ===== */
.filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 4px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
}

/* ===== POSTS TABLE ===== */
.posts-table-wrapper {
    overflow-x: auto;
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.posts-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.posts-table tr:hover td {
    background: var(--bg-card-hover);
}

.post-content-cell {
    max-width: 360px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.post-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
}

.post-thumbnail-placeholder {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.post-content-text {
    line-height: 1.5;
    margin-bottom: 4px;
}

.post-has-media {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-has-media i {
    margin-right: 4px;
}

.post-platforms-list {
    display: flex;
    gap: 8px;
    font-size: 1.1rem;
}

.post-date, .post-time {
    display: block;
    font-size: 0.85rem;
}

.post-date i, .post-time i {
    margin-right: 4px;
    color: var(--text-muted);
}

.post-actions-cell {
    display: flex;
    gap: 6px;
}

/* ===== X (Twitter) Icon Fix ===== */
/* The fa-x-twitter icon is black by default, make it white on dark backgrounds */
.fa-x-twitter {
    color: #ffffff !important;
}

/* ===== ACCOUNTS GRID ===== */
.accounts-grid {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.account-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-left: 4px solid var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.account-card-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.platform-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.account-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.account-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.account-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-input);
}

.last-synced {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.last-synced i {
    margin-right: 4px;
}

/* Status Dot */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 8px rgba(0, 184, 148, 0.5);
}

.status-dot.inactive {
    background: var(--text-muted);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}


.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* ===== CALENDAR ===== */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.calendar-nav h2 {
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 200px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.calendar-header {
    display: contents;
}

.calendar-header span {
    background: var(--bg-card);
    padding: 12px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-day {
    background: var(--bg-card);
    min-height: 70px;
    padding: 4px;
    position: relative;
}

.calendar-day.empty {
    background: var(--bg-secondary);
}

.calendar-day.today {
    background: rgba(108, 92, 231, 0.1);
}

.calendar-day.today .day-number {
    background: var(--primary);
    color: white;
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-posts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-post {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.day-post.scheduled {
    background: rgba(253, 203, 110, 0.2);
    border-left: 2px solid var(--warning);
}

.day-post.published {
    background: rgba(0, 184, 148, 0.2);
    border-left: 2px solid var(--success);
}

.day-post.draft {
    background: rgba(99, 110, 114, 0.2);
    border-left: 2px solid var(--text-muted);
}

.day-post:hover {
    opacity: 0.8;
}

.day-post-content {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.day-post-platforms {
    display: flex;
    gap: 2px;
}

.day-post-platforms i {
    font-size: 0.7rem;
}

/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.media-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.media-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.media-preview {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-input);
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-video-preview i {
    position: absolute;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 1;
}

.media-video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: 12px;
}

.media-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-size, .media-dimensions {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 8px;
}

.media-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.upload-area p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-area span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upload-preview {
    text-align: center;
    padding: 16px;
}

.upload-preview img {
    max-height: 200px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

/* ===== IDEAS BOARD ===== */
.ideas-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.ideas-column {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.ideas-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ideas-column-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ideas-column-header h3 i {
    color: var(--primary);
}

.ideas-count {
    background: var(--bg-input);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ideas-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.idea-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    transition: var(--transition);
}

.idea-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.idea-card.in-progress {
    border-left: 3px solid var(--warning);
}

.idea-card.completed {
    border-left: 3px solid var(--success);
    opacity: 0.7;
}

.idea-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.idea-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.idea-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.idea-category {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

.idea-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.idea-actions {
    display: flex;
    gap: 6px;
}

/* ===== SCHEDULES ===== */
.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.schedule-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.schedule-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.schedule-card-body {
    padding: 20px;
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.schedule-time i {
    color: var(--primary);
    font-size: 1.2rem;
}

.schedule-days {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.day-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-input);
    color: var(--text-muted);
}

.day-badge.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
}

.schedule-timezone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.schedule-timezone i {
    font-size: 0.9rem;
}

/* Days Checkboxes */
.days-checkboxes {
    display: flex;
    gap: 8px;
}

.day-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.day-checkbox input {
    accent-color: var(--primary);
}

.day-checkbox span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== PROFILE ===== */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.profile-avatar-section {
    text-align: center;
    padding: 32px 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--primary);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.profile-stat {
    text-align: center;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== SETTINGS ===== */
.settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.settings-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.settings-nav-item:last-child {
    border-bottom: none;
}

.settings-nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.settings-tab {
    display: none;
}

.settings-tab.active {
    display: block;
}

/* ===== ANALYTICS ===== */
.analytics-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.analytics-account-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}

.analytics-account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.analytics-account-header i {
    font-size: 1.5rem;
}

.analytics-account-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.analytics-account-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.analytics-account-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mini-stat {
    text-align: center;
}

.mini-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mini-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===== ADMIN TABLE ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.admin-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ===== LANDING PAGE ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration {
    position: relative;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration > i {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.5;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 10%; left: 10%; }
.floating-icons i:nth-child(2) { top: 5%; right: 15%; }
.floating-icons i:nth-child(3) { bottom: 20%; left: 5%; }
.floating-icons i:nth-child(4) { bottom: 10%; right: 10%; }
.floating-icons i:nth-child(5) { top: 40%; right: 0; }
.floating-icons i:nth-child(6) { bottom: 40%; left: 0; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.features {
    padding: 80px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 32px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Landing Footer */
.landing-footer {
    padding: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand i {
    color: var(--primary);
}

.footer-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}


/* ===== BACKGROUND COLORS ===== */
.bg-primary { background: rgba(108, 92, 231, 0.2); color: var(--primary-light); }
.bg-success { background: rgba(0, 184, 148, 0.2); color: var(--success); }
.bg-warning { background: rgba(253, 203, 110, 0.2); color: var(--warning); }
.bg-danger { background: rgba(225, 112, 85, 0.2); color: var(--danger); }
.bg-info { background: rgba(116, 185, 255, 0.2); color: var(--info); }
.bg-secondary { background: rgba(99, 110, 114, 0.2); color: var(--text-muted); }
.bg-purple { background: rgba(162, 155, 254, 0.2); color: var(--purple); }

/* ===== UTILITY CLASSES ===== */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .compose-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .settings-layout {
        grid-template-columns: 1fr;
    }
    
    .ideas-board {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 24px;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        width: 280px;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .top-header {
        padding: 0 16px;
    }
    
    .page-content {
        padding: 16px;
    }
    
    .header-search {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedules-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-accounts {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .auth-card {
        padding: 24px;
    }
}

/* ===== SPINNER OVERLAY ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-content {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* ===== HASHTAGS ===== */
.hashtag-add-form {
    margin-bottom: 4px;
}

.hashtag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.hashtag-filter {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.hashtag-filter:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.hashtag-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.hashtag-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.hashtag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.hashtag-item:hover {
    background: var(--bg-card-hover);
}

.hashtag-tag {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.hashtag-tag:hover {
    color: var(--primary);
}

.hashtag-usage {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 20px;
    text-align: center;
}

.hashtag-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px;
    transition: var(--transition);
    opacity: 0;
}

.hashtag-item:hover .hashtag-delete {
    opacity: 1;
}

.hashtag-delete:hover {
    color: var(--danger);
}

/* Hashtag checkbox in modal */
.hashtag-checkbox {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.hashtag-item label.hashtag-item {
    cursor: pointer;
}

.hashtag-item:has(.hashtag-checkbox:checked) {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

/* ===== OAUTH PLATFORM CARDS ===== */
.oauth-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.oauth-platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.oauth-platform-card:hover:not(.disabled):not(.connected) {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

.oauth-platform-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oauth-platform-card.connected {
    border-color: var(--success);
    cursor: default;
}

.oauth-platform-card .platform-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ===== AI GENERATION ===== */
.ai-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.ai-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.ai-result-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.ai-result-item:has(.ai-result-checkbox:checked) {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.4);
}

.ai-result-checkbox {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.ai-result-content {
    flex: 1;
}

.ai-result-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ai-result-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.ai-result-category {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* AI Enhance badges */
.ai-hashtag-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
}

/* Crawl URL hashtags - clickable to add to post */
.crawl-hashtag {
    transition: all 0.2s ease;
    cursor: pointer;
}
.crawl-hashtag:hover {
    background: rgba(108, 92, 231, 0.35);
    transform: scale(1.05);
}
.crawl-hashtag:active {
    transform: scale(0.95);
}

.ai-platform-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 2px;
}

/* AI Enhance button pulse animation */
.ai-enhance-btn {
    position: relative;
}

.ai-enhance-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Preset buttons */
.preset-btn {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
}

.preset-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary-light) !important;
}

/* ============================================================
   WEB SPIDER STYLES
   ============================================================ */

.spider-layout {
    max-width: 900px;
}

.spider-layout .card {
    margin-bottom: 20px;
}

/* Product data grid */
.product-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .product-data-grid {
        grid-template-columns: 1fr;
    }
}

.product-data-main .form-group {
    margin-bottom: 16px;
}

.product-data-main .form-group:last-child {
    margin-bottom: 0;
}

.product-data-main label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Product images grid */
.product-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-image-option {
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-image-option:hover {
    border-color: var(--primary-light);
}

.product-image-option input[type="radio"] {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.product-image-option input[type="radio"]:checked + img {
    opacity: 1;
}

.product-image-option input[type="radio"]:checked ~ .product-image-option {
    border-color: var(--primary);
}

.product-image-option img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.product-image-option img:hover {
    opacity: 1;
}

/* Test URL buttons */
.test-url-btn {
    font-size: 0.75rem !important;
    padding: 3px 10px !important;
}

.test-url-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary-light) !important;
}

/* Spider loading */
#spiderLoading .spinner,
#postLoading .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* Generated post textarea */
#postContent {
    font-size: 0.95rem;
    line-height: 1.6;
}

#postContent:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Badge for scrape status */
#scrapeStatus {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ============================================================
   IMAGE EDITOR MODAL
   ============================================================ */
.editor-modal-content {
    max-width: 1000px !important;
    width: 95% !important;
}

.editor-modal-body {
    padding: 0 !important;
    overflow: hidden;
}

.editor-layout {
    display: flex;
    gap: 0;
    min-height: 500px;
}

.editor-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #1a1a2e;
    position: relative;
    min-height: 400px;
}

.editor-canvas-area canvas {
    max-width: 100%;
    max-height: 450px;
    border-radius: 8px;
    cursor: default;
    background: repeating-conic-gradient(#2a2a45 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
}

.editor-canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.editor-separator {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

.crop-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--primary);
}

.editor-tools-panel {
    width: 280px;
    flex-shrink: 0;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.editor-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.editor-tab {
    flex: 1;
    min-width: 50px;
    padding: 10px 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-bottom: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.editor-tab i {
    font-size: 16px;
}

.editor-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.editor-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.editor-panel {
    display: none;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.editor-panel.active {
    display: block;
}

.editor-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-card-hover);
}

.filter-btn.active {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.filter-preview {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
}

.filter-preview.filter-grayscale { filter: grayscale(100%); }
.filter-preview.filter-sepia { filter: sepia(100%); }
.filter-preview.filter-vintage { filter: sepia(50%) contrast(80%) brightness(90%); }
.filter-preview.filter-warm { filter: saturate(130%) hue-rotate(15deg); }
.filter-preview.filter-cool { filter: saturate(120%) hue-rotate(200deg); }
.filter-preview.filter-dramatic { filter: contrast(150%) brightness(90%) saturate(110%); }
.filter-preview.filter-fade { filter: saturate(60%) contrast(90%) brightness(110%); }
.filter-preview.filter-blur { filter: blur(3px); }

.filter-name {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Adjust Sliders */
.adjust-sliders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.slider-value {
    color: var(--text-primary);
    font-weight: 600;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg-card);
}

/* Text Controls */
.text-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.text-input-area {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.text-style-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.text-style-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.text-style-row .form-group label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.text-style-row .form-group input[type="number"],
.text-style-row .form-group input[type="color"] {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
}

.text-style-row .form-group input[type="color"] {
    height: 36px;
    padding: 2px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Resize */
.resize-inputs {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 8px;
}

.resize-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.resize-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.resize-row .form-group label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.resize-row .form-group input {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
}

/* Preview Actions (Edit Image button) */
.preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: #fff;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Responsive editor */
@media (max-width: 768px) {
    .editor-layout {
        flex-direction: column;
    }
    
    .editor-tools-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .editor-canvas-area {
        min-height: 250px;
        padding: 12px;
    }
    
    .editor-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100%;
        border-radius: 0;
    }
    
    .filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


