/* 
 * GSE Admin Modern UI Theme
 * Based on Inter font and Tailwind-inspired color palette
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Indigo Theme */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    font-weight: 600;
}

/* Layout Components */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--gray-900);
    border-right: 1px solid var(--gray-800);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--gray-800);
}

.sidebar-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    height: var(--header-height);
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
}

.page-content {
    padding: 2rem;
    flex: 1;
}

/* Navigation */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background-color: rgba(79, 70, 229, 0.1);
    border-left-color: var(--primary-500);
}

.nav-link i {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    opacity: 0.8;
}

.nav-section-title {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--gray-900);
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

/* Tables */
.table-responsive {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    width: 100%;
}

.table thead th {
    background-color: var(--gray-50);
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    border-top: none;
}

.table tbody td {
    padding: 1rem 1.5rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--gray-900);
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Login Page Specific */
.login-page {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: var(--gray-900);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating .form-control {
    height: 3.5rem;
    padding: 1.625rem 0.75rem 0.625rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: var(--gray-500);
}

.form-floating .form-control:focus~label,
.form-floating .form-control:not(:placeholder-shown)~label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Utilities */
.text-primary {
    color: var(--primary-600) !important;
}

.bg-primary {
    background-color: var(--primary-600) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.breadcrumb-item a {
    color: var(--primary-600);
    text-decoration: none;
}


/* Image Preview */
.image-preview {
    margin-top: 1rem;
    border: 1px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    background-color: var(--gray-50);
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
}
/* New Login Page Style (Tech Blue) */
.login-page-v2 {
    background: url('../images/login-bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-page-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 10, 40, 0.4);
    z-index: 1;
}

.login-card-v2 {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.login-title-v2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    text-align: left;
    letter-spacing: 1px;
}

.login-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-input-group i {
    position: absolute;
    left: 0;
    top: 10px;
    color: #999;
    width: 20px;
    text-align: center;
}

.login-input-v2 {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 10px 10px 35px;
    font-size: 0.9rem;
    color: #333;
    outline: none;
    transition: all 0.3s;
    border-radius: 0;
    background: transparent;
}

.login-input-v2:focus {
    border-bottom-color: #1890ff;
}

.login-input-v2::placeholder {
    color: #ccc;
}

.login-btn-v2 {
    width: 100%;
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn-v2:hover {
    background-color: #40a9ff;
}

