@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #08080a;
    --bg-darker: #040405;
    --panel-bg: rgba(18, 18, 24, 0.7);
    --panel-bg-hover: rgba(26, 26, 36, 0.85);
    --panel-border: rgba(255, 255, 255, 0.06);
    --panel-border-glow: rgba(225, 48, 108, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --ig-gradient: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fcb045 100%);
    --accent-color: #e1306c;
    --accent-color-rgb: 225, 48, 108;
    
    --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --red-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --orange-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --sidebar-width: 260px;
    --header-height: 80px;
    
    --font-sans: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(225, 48, 108, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Background animated glow orbs */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-darker);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    animation: float 25s infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #e1306c;
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #833ab4;
    bottom: -15%;
    left: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #fcb045;
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.1); }
    100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: radial-gradient(circle at center, rgba(12, 12, 16, 0.8) 0%, var(--bg-darker) 100%);
    transition: opacity 0.5s ease, visibility 0.5s;
}

.login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-premium);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--ig-gradient);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.4);
}

.login-logo svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.login-title {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.15);
}

.btn {
    width: 100%;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--ig-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-danger:hover {
    filter: brightness(1.1);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}

/* App Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app-container.active {
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 10, 14, 0.85);
    border-right: 1px solid var(--panel-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--panel-border);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--ig-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(225, 48, 108, 0.08);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ig-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.main-header {
    height: var(--header-height);
    background: rgba(10, 10, 14, 0.4);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 5;
}

.header-title {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
}

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

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 8px #10b981; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Page Containers */
.page-view {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: none;
}

.page-view.active {
    display: block;
}

/* Dashboard Overview Tab */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-icon.purple { background: rgba(131, 58, 180, 0.15); color: #c084fc; }
.stat-icon.pink { background: rgba(225, 48, 108, 0.15); color: #f472b6; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Feature/Welcome Section */
.welcome-banner {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1) 0%, rgba(131, 58, 180, 0.05) 100%);
    border: 1px solid var(--panel-border-glow);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h2 {
    font-family: var(--font-title);
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 600px;
    line-height: 1.6;
}

/* Section Header styling */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 600;
}

/* Custom Search Box / Add Feed */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 8px;
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 12px 12px 48px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
}

.search-container button {
    width: auto;
    white-space: nowrap;
    padding: 12px 24px;
}

/* Feeds Grid and Cards */
.feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.feed-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.feed-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feed-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--panel-border);
}

.feed-avatar-wrapper {
    position: relative;
}

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

.feed-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ig-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 18px;
}

.feed-status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.feed-status-badge.active { background-color: #10b981; }
.feed-status-badge.error { background-color: #ef4444; }

.feed-title-info {
    flex: 1;
    overflow: hidden;
}

.feed-username {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-displayname {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.feed-meta-label {
    color: var(--text-secondary);
}

.feed-meta-value {
    font-weight: 500;
}

.feed-recent-posts {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.feed-thumb {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.feed-card-footer {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--panel-border);
    display: flex;
    gap: 8px;
}

/* Copy feed link specific style */
.btn-copy-feed {
    flex: 1;
    font-size: 13px;
    padding: 10px;
}

.btn-icon-only {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-icon-only:hover {
    color: var(--text-primary);
}

.btn-icon-only svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Spin animation for syncer */
.spinning {
    animation: spin 1s linear infinite;
}

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

/* Row Scrapers style */
.scrapers-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: start;
}

.card-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.auth-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.auth-tab.active {
    background: var(--ig-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(225, 48, 108, 0.2);
}

/* Scrapers list table */
.scraper-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.scraper-table th {
    padding: 16px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--panel-border);
    font-weight: 600;
}

.scraper-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--panel-border);
    font-size: 14px;
}

.scraper-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.active { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.15); color: #34d399; }
.badge.auth_required { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge.rate_limited { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.15); color: #fcd34d; }
.badge.authenticating { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.15); color: #93c5fd; }

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge.active .badge-dot { background-color: #10b981; }
.badge.auth_required .badge-dot { background-color: #ef4444; animation: flash 1s infinite alternate; }
.badge.rate_limited .badge-dot { background-color: #f59e0b; }
.badge.authenticating .badge-dot { background-color: #3b82f6; animation: flash 1s infinite alternate; }

@keyframes flash {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Modal and Drawer view */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(15, 15, 20, 0.95);
    border-left: 1px solid var(--panel-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 101;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.active {
    right: 0;
}

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

.drawer-title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drawer-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.drawer-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post preview Card inside drawer */
.post-preview-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
}

.post-preview-img {
    width: 100%;
    aspect-ratio: 1.3;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
}

.post-preview-content {
    padding: 16px;
}

.post-preview-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.post-preview-caption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-preview-caption:hover {
    -webkit-line-clamp: unset;
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--panel-bg);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 16px 24px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    animation: toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide {
    to { transform: translateX(0); }
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-secondary);
    opacity: 0.6;
}

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

/* Custom settings grids */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.tips-box {
    background: rgba(225, 48, 108, 0.04);
    border: 1px dashed rgba(225, 48, 108, 0.25);
    border-radius: 16px;
    padding: 24px;
}

.tips-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-list li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}

.tips-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* Custom Responsive Styles */
@media(max-width: 1024px) {
    .scrapers-container, .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    .logo-text, .user-info, .nav-item span {
        display: none;
    }
    .sidebar-header, .sidebar-footer {
        padding: 0;
        justify-content: center;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .user-profile {
        justify-content: center;
    }
}
