/* =========================
   Import Font
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================
   Variabel Global
========================= */
:root {
    --primary-color: #2D5A27;
    --primary-light: #3d7a36;
    --primary-dark: #214a1d;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f4f6f4;
    --card-bg: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

/* =========================
   Gaya Dasar
========================= */
body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--dark-color);
}

.container {
    max-width: 800px;
}

/* Navbar styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0;
}

.navbar-brand .logo-wrapper {
    height: 42px;
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.3px;
}

.navbar-text {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 1.5rem !important;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.logo-frame .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Login page specific logo */
.login-logo {
    width: 80px;
    height: auto;
    margin: 10px auto;
    display: block;
}

/* =========================
   Header Card
========================= */
.header-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #fff;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.header-card h1 {
    font-weight: 700;
}

/* =========================
   Form Card
========================= */
.form-card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* =========================
   Dashboard Styles
========================= */
.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-header .school-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.dashboard-header .logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card .card-header {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 11px 11px 0 0;
}

.content-card .card-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.content-card .card-body {
    padding: 1.25rem;
}

.table-container {
    margin-top: 1rem;
}

.custom-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.custom-table th {
    background: var(--primary-color);
    font-weight: 600;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.custom-table td {
    vertical-align: middle;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.15);
}

/* =========================
   Elemen Form
========================= */
.form-label {
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.2);
}

/* =========================
   Tombol
========================= */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   Notifikasi
========================= */
.alert {
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* =========================
   Sidebar
========================= */
.sidebar {
    display: none;
}

.sidebar .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .logo i {
    font-size: 1.8rem;
}

.sidebar nav {
    width: 100%;
}

.sidebar nav a {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================
   Main Content
========================= */
.main-content {
    margin-left: 0;
    padding: 2rem;
}

/* =========================
   Header
========================= */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 2rem;
}

.header .title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark-color);
}

.header .logout-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

/* =========================
   Header Section Styles
========================= */
.header-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.header-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

/* =========================
   New styles for enhanced UI
========================= */
.stats-card {
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,.05);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stats-card h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.user-info {
    line-height: 1.2;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-color);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.pagination {
    margin-bottom: 0;
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 2px;
}

.page-link:focus {
    box-shadow: none;
}

.btn-group-sm>.btn {
    padding: .25rem .5rem;
    border-radius: 4px;
}

/* Header Styles */
.header-wrapper {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin-bottom: 2rem;
}

.navbar {
    padding: 1rem 0;
    background: #fff;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    padding: 0.5rem 1rem !important;
    color: #6c757d !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(13, 110, 253, 0.1);
}

.nav-link i {
    font-size: 1.1rem;
}

.main-content {
    padding: 2rem;
}

/* Remove old styles */
.hero-section,
.brand-text {
    display: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        position: static;
        min-height: auto;
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Welcome Section */
.welcome-section {
    padding: 1rem;
}

/* Add these new styles */
.hero-section {
    padding: 4rem 0 2rem;
}

.hero-title {
    line-height: 1.2;
}

.hero-title .small {
    font-size: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 600px;
}

.admin-info {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.guru-info-card {
    background-color: var(--light-color);
    border: none;
    margin-top: 2rem;
}
