/* ==========================================================================
   Layout Styles - public/css/layout.css
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 998;
    transition: left 0.3s ease;
}

.header-content {
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: #f7fafc;
    color: #2d3748;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    color: #2d3748;
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
}

.upgrade-btn:hover {
    color: white !important;
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header {
        left: 60px;
    }

    .main-content {
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .header {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .header-content {
        padding: 0 1rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-action-btn span {
        display: none;
    }

    .header-action-btn {
        padding: 0.6rem;
    }

    .content-wrapper {
        padding: 1rem;
    }
}