/* COEB Grievance - Modern UI Design System
   Core CSS Tokens and Base Styles
*/

:root {
    /* Color Palette - Vibrant & Premium */
    --primary-color: #4f46e5;       /* Indigo-600 */
    --primary-hover: #4338ca;
    --secondary-color: #10b981;     /* Emerald-500 */
    --accent-color: #f59e0b;        /* Amber-500 */
    --danger-color: #ef4444;        /* Rose-500 */
    
    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;          /* Slate-800 */
    --bg-sidebar-hover: #334155;
    
    /* Text Colors */
    --text-primary: #1e293b;        /* Slate-800 */
    --text-secondary: #64748b;      /* Slate-500 */
    --text-on-dark: #f8fafc;
    
    /* Borders & Shadow */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-standard: 0.3s ease;
}

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

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition-standard);
    font-weight: 600;
    border-radius: 8px;
}

/* Layout - Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #10b981 100%);
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
}

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

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: #fcfcfc;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

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

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-on-dark);
    padding: 20px 0;
    flex-shrink: 0;
    transition: var(--transition-standard);
    z-index: 100;
}

.sidebar-logo {
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.sidebar-nav li a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: var(--bg-sidebar-hover);
    color: #fff;
    border-left: 4px solid var(--primary-color);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.navbar {
    height: 70px;
    background-color: #fff;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.content-body {
    padding: 30px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        width: 80px;
    }
    .sidebar-logo h2, .sidebar-nav li a span {
        display: none;
    }
    .sidebar-nav li a {
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }
    .sidebar-nav li a i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
    }
    .sidebar.active {
        left: 0;
    }
}
