/* ============================================================================
   LinkedIn AI Auto Post - Modern AI-Styled Interface
   ============================================================================ */

/* CSS Variables for theming */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-hover: #1e1e2a;
    --text-primary: #e7e9ea;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-linkedin: #0077b5;
    --accent-linkedin-hover: #005a8e;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --border-color: #2a2a35;
    --border-light: #3a3a45;
    --gradient-linkedin: linear-gradient(135deg, #0077b5 0%, #8b5cf6 50%, #10b981 100%);
    --gradient-ai: linear-gradient(135deg, #0077b5 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-card: linear-gradient(145deg, #16161f 0%, #1a1a25 100%);
    --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);
    --shadow-glow: 0 0 30px rgba(0, 119, 181, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Top Navigation Bar */
.top-nav-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 8px;
    z-index: 1000;
}

.top-nav-bar .nav-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.top-nav-bar .nav-icon-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-linkedin);
    color: var(--accent-linkedin);
    transform: translateY(-2px);
}

.top-nav-bar .nav-icon-btn i {
    font-size: 16px;
}

/* Hide top nav on mobile */
@media (max-width: 768px) {
    .top-nav-bar {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding-top: 50px;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-linkedin);
    top: -100px;
    left: -100px;
}

.bg-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    top: 50%;
    right: -50px;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-green);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, 10px) scale(1.02); }
}

/* Neural Network Canvas */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
}

/* ============================================================================
   Main Container
   ============================================================================ */

.linke-container {
    min-height: 100vh;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ============================================================================
   Header Section
   ============================================================================ */

.linke-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    position: relative;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-linkedin);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.linke-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-linkedin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.linke-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================================
   Login Section
   ============================================================================ */

.login-section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.login-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-linkedin);
}

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

.login-icon {
    margin-bottom: 24px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-linkedin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 119, 181, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid rgba(0, 119, 181, 0.2);
    transition: all var(--transition-fast);
}

.login-feature:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.3);
    transform: translateX(4px);
}

.login-feature span {
    font-size: 1.1rem;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.linke-button {
    background: var(--accent-linkedin);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.linke-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.linke-button:hover::before {
    left: 100%;
}

.linke-button:hover:not(:disabled) {
    background: var(--accent-linkedin-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.linke-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.linke-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-linkedin);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.4);
}

.linke-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 119, 181, 0.5);
}

.linke-logout {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-secondary);
}

.linke-logout:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: none;
}

.linke-post {
    background: var(--gradient-ai);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.linke-post:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

/* ============================================================================
   Main Content Area
   ============================================================================ */

.linke-main {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   Tabs
   ============================================================================ */

.linke-tabs {
    display: flex;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 6px;
}

.tab-button {
    flex: 1;
    padding: 14px 20px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
    position: relative;
}

.tab-button.active {
    background: var(--gradient-linkedin);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.tab-button:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================================================
   Tab Content Card
   ============================================================================ */

.tab-content {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tab-panel.hidden {
    display: none;
}

.linkedin-post-box {
    padding: 32px;
}

/* ============================================================================
   Post Header
   ============================================================================ */

.linkedin-post-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.linkedin-profile-pic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-linkedin);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.3);
    transition: all var(--transition-normal);
}

.linkedin-profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 119, 181, 0.5);
}

.linkedin-user-info {
    flex: 1;
}

.linkedin-user-name {
    font-weight: 700;
    font-size: 17px;
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.linkedin-visibility {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.linkedin-visibility:hover {
    background: var(--bg-hover);
    border-color: var(--accent-linkedin);
    color: var(--accent-linkedin);
}

.linkedin-visibility:focus {
    outline: none;
    border-color: var(--accent-linkedin);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
}

/* ============================================================================
   Advanced Options
   ============================================================================ */

.advanced-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-group select:focus {
    outline: none;
    border-color: var(--accent-linkedin);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.15);
}

.option-group select:hover {
    border-color: var(--border-light);
}

/* ============================================================================
   Post Input
   ============================================================================ */

.linkedin-post-input {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    line-height: 1.6;
}

.linkedin-post-input:focus {
    outline: none;
    border-color: var(--accent-linkedin);
    box-shadow: 0 0 0 4px rgba(0, 119, 181, 0.15), 0 0 30px rgba(0, 119, 181, 0.1);
    background: var(--bg-tertiary);
}

.linkedin-post-input::placeholder {
    color: var(--text-muted);
}

/* ============================================================================
   Post Actions
   ============================================================================ */

.linkedin-post-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.linkedin-ai-button {
    background: var(--gradient-ai);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.linkedin-ai-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.linkedin-ai-button:hover:not(:disabled)::before {
    left: 100%;
}

.linkedin-ai-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.linkedin-ai-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   Scheduling Section
   ============================================================================ */

.scheduling-section {
    margin-top: 24px;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.scheduling-section.hidden {
    display: none;
}

.scheduling-section h3 {
    color: var(--accent-green);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Scheduling Mode Toggle */
.scheduling-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.mode-option {
    position: relative;
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.mode-option input[type="radio"]:checked + label {
    background: rgba(0, 119, 181, 0.15);
    border-color: var(--accent-linkedin);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.2);
}

.mode-option:hover label {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.mode-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: block;
}

.mode-description {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

/* Daily Status */
.daily-status {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--accent-orange);
}

.daily-status.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.status-indicator {
    font-size: 12px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Schedule Options */
.schedule-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-group.hidden {
    display: none;
}

.schedule-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-group input,
.schedule-group select {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.schedule-group input:focus,
.schedule-group select:focus {
    outline: none;
    border-color: var(--accent-linkedin);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.15);
}

.schedule-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.schedule-button {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.schedule-button:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.draft-button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.draft-button:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
    box-shadow: none;
}

.draft-title-input {
    flex: 1;
    min-width: 150px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.draft-title-input:focus {
    outline: none;
    border-color: var(--accent-linkedin);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.15);
}

.draft-title-input::placeholder {
    color: var(--text-muted);
}

/* ============================================================================
   AI Result Section
   ============================================================================ */

.ai-result {
    margin-top: 24px;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.ai-result.hidden {
    display: none;
}

.ai-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ai);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.ai-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-subtitle {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-edit-button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ai-edit-button:hover {
    background: var(--bg-hover);
    border-color: var(--accent-linkedin);
    color: var(--accent-linkedin);
}

.ai-post-text {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
}

.ai-post-edit {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: 2px solid var(--accent-linkedin);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    line-height: 1.7;
}

.ai-post-edit.hidden {
    display: none;
}

.ai-post-edit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
}

.ai-image {
    margin-top: 20px;
    max-width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.ai-image.hidden {
    display: none;
}

/* ============================================================================
   Scheduled Posts Tab
   ============================================================================ */

.scheduled-posts,
.drafts,
.analytics {
    padding: 32px;
}

.scheduled-posts h2,
.drafts h2,
.analytics h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.posts-list,
.drafts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.posts-list p,
.drafts-list p {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

/* Post/Draft Item Cards */
.scheduled-post-item,
.draft-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.scheduled-post-item:hover,
.draft-item:hover {
    border-color: var(--accent-linkedin);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============================================================================
   Analytics Grid
   ============================================================================ */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.analytics-grid p {
    grid-column: 1 / -1;
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.analytics-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.analytics-card:hover {
    border-color: var(--accent-linkedin);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.analytics-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-linkedin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.analytics-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================================
   AI Loading Overlay
   ============================================================================ */

.ai-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.ai-loading-overlay.active {
    display: flex;
}

.ai-loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.ai-loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.ai-spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.ai-spinner-ring:nth-child(1) {
    border-top-color: var(--accent-linkedin);
    animation: spin 1.2s linear infinite;
}

.ai-spinner-ring:nth-child(2) {
    border-right-color: var(--accent-purple);
    animation: spin 1.5s linear infinite reverse;
}

.ai-spinner-ring:nth-child(3) {
    border-bottom-color: var(--accent-green);
    animation: spin 2s linear infinite;
}

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

.ai-loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ai-loading-logo {
    width: 32px;
    height: 32px;
}

.ai-loading-message {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.ai-loading-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.ai-progress-bar {
    height: 100%;
    background: var(--gradient-ai);
    border-radius: 2px;
    animation: progressPulse 2s ease-in-out infinite;
    width: 30%;
}

@keyframes progressPulse {
    0%, 100% { width: 30%; margin-left: 0; }
    50% { width: 50%; margin-left: 25%; }
}

.ai-loading-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-stat {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================================================
   Token Display
   ============================================================================ */

.token-display-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.token-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-icon {
    color: var(--accent-orange);
    font-size: 18px;
}

.token-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.token-label {
    font-size: 12px;
    color: var(--text-muted);
}

.upgrade-btn {
    background: var(--gradient-ai);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* ============================================================================
   Helper Classes
   ============================================================================ */

.hidden {
    display: none !important;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .linke-container {
        padding: 12px;
        padding-top: 70px;
    }

    .linke-header {
        padding: 20px 12px;
    }

    .linke-title {
        font-size: 1.75rem;
    }

    .linke-tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
    }

    .linkedin-post-box {
        padding: 20px;
    }

    .linkedin-post-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .advanced-options {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .linkedin-post-actions {
        flex-direction: column;
    }

    .linkedin-ai-button,
    .linke-button {
        width: 100%;
        justify-content: center;
    }

    .scheduling-mode-toggle {
        grid-template-columns: 1fr;
    }

    .schedule-actions {
        flex-direction: column;
    }

    .schedule-button,
    .draft-button {
        width: 100%;
        justify-content: center;
    }

    .draft-title-input {
        width: 100%;
    }

    .login-card {
        padding: 32px 24px;
    }

    .ai-loading-stats {
        flex-direction: column;
        gap: 10px;
    }

    .token-display-container {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Enhanced mobile spacing and touch targets */
    .linke-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .linkedin-profile-info h3 {
        font-size: 1rem;
    }
    
    .linkedin-post-input {
        min-height: 100px;
        font-size: 15px;
        padding: 14px;
    }
    
    .option-item label {
        font-size: 0.9rem;
    }
    
    .option-item select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .linkedin-ai-button,
    .linke-button {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    /* Scheduling section */
    .scheduling-section {
        padding: 16px;
    }
    
    .scheduling-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .scheduling-header h3 {
        font-size: 1.1rem;
    }
    
    .datetime-picker input {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* AI Result section */
    .ai-result {
        padding: 16px;
        margin: 12px 0;
    }
    
    .ai-result-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .ai-result-content {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 14px;
    }
    
    .ai-result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .ai-result-actions button {
        width: 100%;
        padding: 12px;
    }
    
    /* Token display */
    .token-card {
        padding: 16px;
    }
    
    .token-count {
        font-size: 1.5rem;
    }
    
    /* Draft and schedule items */
    .draft-item,
    .schedule-item {
        padding: 14px;
    }
    
    .draft-item-actions,
    .schedule-item-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Login section improvements */
    .login-section {
        padding: 20px;
    }
    
    .login-card {
        padding: 28px 20px;
    }
    
    .login-title {
        font-size: 1.4rem;
    }
    
    .login-description {
        font-size: 0.95rem;
    }
    
    .linkedin-connect-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .linke-container {
        padding: 8px;
    }
    
    .linke-title {
        font-size: 1.5rem;
    }

    .linke-subtitle {
        font-size: 0.9rem;
    }

    .tab-button {
        padding: 10px 12px;
        font-size: 12px;
        flex: 1;
        min-width: 0;
    }

    .linkedin-profile-pic {
        width: 48px;
        height: 48px;
    }

    .linkedin-post-input {
        min-height: 120px;
        padding: 16px;
    }

    .scheduling-section,
    .ai-result {
        padding: 20px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }
    
    /* Extra small mobile refinements */
    .linke-header {
        padding: 16px 10px;
    }
    
    .linkedin-post-box {
        padding: 14px;
    }
    
    .advanced-options {
        padding: 12px;
    }
    
    .option-item {
        margin-bottom: 12px;
    }
    
    .option-item label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .linkedin-ai-button,
    .linke-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .ai-result-content {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .token-display-container {
        gap: 12px;
    }
    
    .token-card {
        padding: 12px;
    }
    
    .token-count {
        font-size: 1.25rem;
    }
}
