/* ============================================
   IDEE CMS v3.0.0 - Ultra Modern Frontend
   Complete Design System - Full Creative Freedom
   ============================================ */

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

/* ============================================
   HIDE WORDPRESS THEME ELEMENTS
   ============================================ */

/* Hide page title, site header, and make full width */
body.page-template-default .site-header,
body.page-template-default .page-header,
body.page-template-default .entry-title,
body.page-template-default #site-header,
body.page-template-default .site-branding,
body.page-template-default .site-footer,
body.page-template-default #site-footer,
body.page-id-101 .site-header,
body.page-id-101 .page-header,
body.page-id-101 .entry-title,
body.page-id-101 #site-header,
body.page-id-101 .site-branding,
body.page-id-101 .site-footer,
body.page-id-101 #site-footer {
    display: none !important;
}

/* Make content full width */
body.page-template-default .site-main,
body.page-template-default .page-content,
body.page-id-101 .site-main,
body.page-id-101 .page-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove WordPress admin bar spacing */
body.admin-bar .idee-app-wrap {
    margin-top: 0 !important;
}

/* ============================================
   DESIGN SYSTEM - VARIABLES
   ============================================ */

:root {
    /* Brand Colors - Vibrant Purple Gradient */
    --idee-primary: #8b5cf6;
    --idee-primary-dark: #7c3aed;
    --idee-primary-light: #a78bfa;
    --idee-secondary: #6366f1;
    --idee-accent: #ec4899;
    
    /* Status Colors */
    --idee-success: #10b981;
    --idee-success-bg: #d1fae5;
    --idee-warning: #f59e0b;
    --idee-warning-bg: #fef3c7;
    --idee-error: #ef4444;
    --idee-error-bg: #fee2e2;
    --idee-info: #3b82f6;
    --idee-info-bg: #dbeafe;
    
    /* Neutrals - Modern Gray Scale */
    --idee-white: #ffffff;
    --idee-gray-50: #f9fafb;
    --idee-gray-100: #f3f4f6;
    --idee-gray-200: #e5e7eb;
    --idee-gray-300: #d1d5db;
    --idee-gray-400: #9ca3af;
    --idee-gray-500: #6b7280;
    --idee-gray-600: #4b5563;
    --idee-gray-700: #374151;
    --idee-gray-800: #1f2937;
    --idee-gray-900: #111827;
    
    /* Spacing - 8px base */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadows - Layered depth */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-purple: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans) !important;
    font-size: 15px;
    line-height: 1.6;
    color: var(--idee-gray-900);
    background: var(--idee-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   APP LAYOUT - SIDEBAR + MAIN
   ============================================ */

.idee-app-wrap {
    display: flex;
    min-height: 100vh;
    background: var(--idee-gray-50);
}

/* ============================================
   SIDEBAR NAVIGATION - GLASSMORPHISM
   ============================================ */

.idee-app-nav {
    width: 280px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.95) 0%, 
        rgba(99, 102, 241, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: var(--shadow-2xl);
}

.idee-app-nav-header {
    padding: var(--space-8) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.idee-app-nav-header svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.idee-app-nav-links {
    flex: 1;
    list-style: none;
    padding: var(--space-4) var(--space-3);
    overflow-y: auto;
}

.idee-app-nav-links li {
    margin-bottom: var(--space-2);
}

.idee-app-nav-links a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.idee-app-nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.idee-app-nav-links a:hover {
    color: white;
    transform: translateX(-2px);
}

.idee-app-nav-links a:hover::before {
    opacity: 1;
}

.idee-app-nav-links li.active a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.idee-app-nav-links svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2;
}

.idee-app-nav-footer {
    padding: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.idee-app-user {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
}

.idee-app-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.05);
}

.idee-app-logout:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.idee-app-main {
    flex: 1;
    margin-right: 280px;
    padding: var(--space-8);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGE HEADER - HERO STYLE
   ============================================ */

.idee-cms-page-header {
    background: linear-gradient(135deg, var(--idee-primary) 0%, var(--idee-secondary) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    margin-bottom: var(--space-8);
    color: white;
    box-shadow: var(--shadow-purple);
    position: relative;
    overflow: hidden;
}

.idee-cms-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.idee-cms-page-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.idee-cms-page-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ============================================
   STATS GRID - MODERN CARDS
   ============================================ */

.idee-cms-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.idee-cms-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--idee-gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.idee-cms-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--idee-primary), var(--idee-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.idee-cms-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--idee-primary);
}

.idee-cms-stat-card:hover::before {
    transform: scaleX(1);
}

.idee-cms-stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--idee-primary), var(--idee-secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.2);
}

.idee-cms-stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
}

.idee-cms-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--idee-gray-900);
    margin: 0 0 var(--space-2) 0;
    letter-spacing: -1px;
}

.idee-cms-stat-label {
    font-size: 14px;
    color: var(--idee-gray-600);
    font-weight: 500;
}

/* ============================================
   CARDS - ELEVATED DESIGN
   ============================================ */

.idee-cms-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--idee-gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
    margin-bottom: var(--space-6);
}

.idee-cms-card:hover {
    box-shadow: var(--shadow-lg);
}

.idee-cms-card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--idee-gray-200);
    background: var(--idee-gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idee-cms-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--idee-gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.idee-cms-card-title svg {
    width: 24px;
    height: 24px;
    stroke: var(--idee-primary);
}

.idee-cms-card-body {
    padding: var(--space-6);
}

/* ============================================
   BUTTONS - MODERN GRADIENT
   ============================================ */

.idee-cms-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: var(--font-sans);
    position: relative;
    overflow: hidden;
}

.idee-cms-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.idee-cms-btn:hover::before {
    opacity: 1;
}

.idee-cms-btn-primary {
    background: linear-gradient(135deg, var(--idee-primary), var(--idee-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.idee-cms-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.idee-cms-btn-secondary {
    background: white;
    color: var(--idee-primary);
    border: 2px solid var(--idee-primary);
}

.idee-cms-btn-secondary:hover {
    background: var(--idee-gray-50);
    transform: translateY(-2px);
}

.idee-cms-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   EMPTY STATE - ILLUSTRATION STYLE
   ============================================ */

.idee-cms-empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.idee-cms-empty-state svg {
    width: 120px;
    height: 120px;
    color: var(--idee-gray-300);
    margin-bottom: var(--space-6);
    opacity: 0.5;
}

.idee-cms-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--idee-gray-900);
    margin: 0 0 var(--space-3) 0;
}

.idee-cms-empty-state p {
    font-size: 16px;
    color: var(--idee-gray-600);
    margin: 0 0 var(--space-6) 0;
}

/* ============================================
   FORMS - MODERN INPUT DESIGN
   ============================================ */

.idee-cms-form-group {
    margin-bottom: var(--space-6);
}

.idee-cms-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--idee-gray-700);
    margin-bottom: var(--space-2);
}

.idee-cms-input,
.idee-cms-textarea,
.idee-cms-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 15px;
    border: 2px solid var(--idee-gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: white;
    font-family: var(--font-sans);
    color: var(--idee-gray-900);
}

.idee-cms-input:focus,
.idee-cms-textarea:focus,
.idee-cms-select:focus {
    outline: none;
    border-color: var(--idee-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.idee-cms-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   TABLES - CLEAN MODERN DESIGN
   ============================================ */

.idee-cms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.idee-cms-table thead {
    background: var(--idee-gray-50);
}

.idee-cms-table th {
    padding: var(--space-4);
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--idee-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--idee-gray-200);
}

.idee-cms-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--idee-gray-200);
    font-size: 14px;
    color: var(--idee-gray-900);
}

.idee-cms-table tbody tr {
    transition: background var(--transition-fast);
}

.idee-cms-table tbody tr:hover {
    background: var(--idee-gray-50);
}

/* ============================================
   STATUS BADGES - COLORFUL
   ============================================ */

.idee-cms-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idee-cms-status-active {
    background: var(--idee-success-bg);
    color: var(--idee-success);
}

.idee-cms-status-pending {
    background: var(--idee-warning-bg);
    color: var(--idee-warning);
}

.idee-cms-status-failed {
    background: var(--idee-error-bg);
    color: var(--idee-error);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .idee-app-nav {
        width: 240px;
    }
    
    .idee-app-main {
        margin-right: 240px;
        padding: var(--space-6);
    }
}

@media (max-width: 768px) {
    .idee-app-nav {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .idee-app-nav-links {
        display: flex;
        overflow-x: auto;
        padding: var(--space-2);
    }
    
    .idee-app-nav-links li {
        margin-bottom: 0;
        margin-left: var(--space-2);
    }
    
    .idee-app-main {
        margin-right: 0;
        padding: var(--space-4);
    }
    
    .idee-cms-page-header {
        padding: var(--space-6);
    }
    
    .idee-cms-page-title {
        font-size: 24px;
    }
    
    .idee-cms-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.idee-cms-card,
.idee-cms-stat-card {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--idee-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--idee-gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--idee-gray-500);
}
