/* Sekolah Sahabat Alam - Unified Stylesheet */
/* Berdasarkan desain website https://sekolahsahabatalam.sch.id/ */

:root {
    --primary-green: #2e7d32;
    --secondary-green: #4caf50;
    --light-green: #66bb6a;
    --accent-green: #81c784;
    --dark-green: #1b5e20;
    --bright-green: #00e676;
    --forest-green: #388e3c;
    --lime-green: #8bc34a;
    --teal-green: #009688;
    --background-light: #f1f8e9;
    --background-white: #ffffff;
    --text-dark: #4A5C41;
    --text-medium: #4A5C41;
    --text-light: #66bb6a;
    --border-light: #c8e6c9;
    --shadow-light: rgba(46,125,50,.15);
    --shadow-medium: rgba(46,125,50,.3);
    --sidebar-width: 280px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    background: var(--background-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */
.main-header {
    background: var(--background-white);
    border-bottom: 3px solid var(--primary-green);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.school-logo-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(74, 93, 35, 0.3);
}

.school-info h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #4A5C41;
    letter-spacing: 1px;
    line-height: 1.2;
}

.school-location {
    margin: 0;
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Header Toggle - Define globally first */
.mobile-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin-right: 12px;
    transition: all 0.3s ease;
    z-index: 1002;
}

.mobile-sidebar-toggle:hover {
    background: var(--secondary-green);
    transform: scale(1.05);
}

.mobile-sidebar-toggle:active {
    transform: scale(0.95);
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    background: var(--background-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-menu:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.user-menu i {
    font-size: 20px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-medium);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: var(--background-light);
    color: var(--primary-green);
}

/* ===== SIDEBAR STYLES ===== */
.admin-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--background-white);
    border-right: 1px solid var(--border-light);
    box-shadow: 2px 0 10px var(--shadow-light);
    z-index: 999;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-logo i {
    font-size: 24px;
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 4px 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: var(--background-light);
    color: var(--primary-green);
    transform: translateX(4px);
}

.sidebar-nav li.active a {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 93, 35, 0.3);
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.main-content.with-sidebar {
    margin-left: var(--sidebar-width);
    max-width: calc(100vw - var(--sidebar-width));
}

.main-content.full-width {
    margin-left: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTENT CONTAINERS ===== */
.content-header {
    margin-bottom: 32px;
}

.content-title {
    font-size: 32px;
    font-weight: 700;
    color: #4A5C41;
    margin: 0 0 8px 0;
}

.content-subtitle {
    font-size: 16px;
    color: #4A5C41;
    margin: 0;
}

.content-card {
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 2px 12px var(--shadow-light);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: #4A5C41;
    margin: 0;
}

/* Header dengan Logo Sekolah */
.school-header {
    background: var(--background-white);
    border-bottom: 2px solid var(--primary-green);
    padding: 16px 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.school-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.school-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.school-title {
    flex: 1;
}

.school-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.school-title .subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    gap: 12px;
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 18px 32px;
    margin: 32px auto 0 auto;
    max-width: 1200px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    background: var(--primary-green);
    color: white;
    border-radius: 24px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 2px solid var(--primary-green);
}

.nav a:hover {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.nav .logout {
    margin-left: auto;
}

.nav .logout a {
    background: #e53935;
    border-color: #e53935;
}

.nav .logout a:hover {
    background: #c62828;
    border-color: #c62828;
}

/* Container */
.container, .form-box {
    background: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--shadow-light);
    padding: 32px;
    margin: 24px auto 40px auto;
    max-width: 1200px;
}

.form-box {
    max-width: 500px;
    padding: 40px 32px;
}

.login-box {
    background: var(--background-white);
    padding: 40px;
    margin: 100px auto;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-medium);
    border-top: 4px solid var(--primary-green);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    margin-top: 0;
}

h2 {
    font-size: 28px;
    color: #4A5C41;
}

h3 {
    font-size: 24px;
    color: #4A5C41;
}

h4 {
    font-size: 20px;
    color: #4A5C41;
}

/* Form Elements */
input[type="text"], 
input[type="password"], 
input[type="email"], 
input[type="tel"], 
input[type="date"], 
input[type="time"], 
select, 
textarea {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0 16px 0;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    font-size: 16px;
    background: var(--background-white);
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.1);
}

input[readonly] {
    background: #f3f3f3;
    color: var(--text-medium);
}

label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}

/* Buttons */
button, .btn, .export-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 2px solid var(--primary-green);

}

button:hover, .btn:hover, .export-btn:hover {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

button[type="submit"] {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    margin: 24px 0;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--primary-green);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: rgba(74, 93, 35, 0.05);
}

/* Links */
a, .acara-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover, .acara-link:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin: 32px 0;
    text-align: center;
}

.pagination a, .pagination span {
    border-radius: 8px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.pagination .active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* Messages */
.sukses, .success {
    background: #d4f8e8;
    color: #2e7d32;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4caf50;
    font-weight: 500;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f44336;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .school-header .container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .school-title h1 {
        font-size: 24px;
    }
    
    .nav {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
    
    .nav a {
        width: 100%;
        text-align: center;
    }
    
    .container, .form-box, .login-box {
        margin: 16px;
        padding: 20px;
        max-width: none;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .school-title h1 {
        font-size: 20px;
    }
    
    .form-box, .login-box {
        padding: 16px;
    }
    
    input, select, button {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-green {
    color: var(--primary-green);
}

.bg-green {
    background-color: var(--primary-green);
    color: white;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

/* Custom Styles for School Branding */
.school-brand {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.school-brand h2 {
    color: white;
    margin-bottom: 8px;
}

.school-brand .tagline {
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

/* ===== FOOTER STYLES ===== */
.main-footer {
    background: #c5d1c7;
    color: #4A5C41;
    margin-top: auto;
    padding: 40px 0 20px 0;
    transition: all 0.3s ease;
}

.main-footer.with-sidebar {
    margin-left: var(--sidebar-width);
}

.main-footer.full-width {
    margin-left: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 40px;
}

.footer-left {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    font-size: 28px;
}

.footer-tagline {
    font-size: 16px;
    opacity: 0.9;
    font-style: italic;
    margin: 0;
}

.footer-right {
    flex: 1;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.info-item i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 125, 50, 0.2);
    gap: 20px;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(74, 92, 65, 0.1);
    border-radius: 50%;
    color: #4A5C41;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(74, 92, 65, 0.2);
    transform: translateY(-2px);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .school-info h1 {
        font-size: 20px;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    /* Dashboard grafik responsive untuk tablet */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Grid layout untuk grafik di tablet */
    div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --header-height: 70px;
    }
    
    .main-header {
        height: var(--header-height);
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .school-logo-main {
        gap: 12px;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .school-info h1 {
        font-size: 18px;
    }
    
    .school-location {
        font-size: 12px;
    }
    
    /* Show mobile toggle button */
    .mobile-sidebar-toggle {
        display: flex !important;
    }
    
    /* Mobile Sidebar */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 100%;
        max-width: 300px;
        z-index: 1001;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content.with-sidebar {
        margin-left: 0;
        max-width: 100%;
    }
    
    .main-content.sidebar-open {
        transform: translateX(0);
        position: relative;
    }
    
    .main-footer.with-sidebar {
        margin-left: 0;
    }
    
    /* Mobile overlay untuk sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .container, .form-box, .login-box {
        margin: 16px;
        padding: 20px;
        max-width: none;
    }
    
    .content-card {
        padding: 20px;
        margin: 16px;
    }
    
    /* Dashboard stats mobile */
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    /* Mobile grafik layout - lebih spesifik */
    .dashboard-grafik-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    /* Canvas responsive */
    canvas {
        max-height: 250px !important;
        width: 100% !important;
    }
    
    /* Content card mobile */
    .content-card {
        padding: 16px !important;
        margin: 8px !important;
        overflow-x: hidden !important;
    }
    
    /* Pastikan tidak ada horizontal scroll */
    .main-content {
        overflow-x: hidden !important;
    }
    
    /* Mobile header fix */
    .header-container {
        padding: 0 12px !important;
    }
    
    .school-info h1 {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    .school-location {
        font-size: 10px !important;
    }
    
    table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    th, td {
        padding: 12px 8px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .school-info h1 {
        font-size: 16px;
    }
    
    .form-box, .login-box {
        padding: 16px;
        margin: 8px;
    }
    
    .content-card {
        padding: 16px;
        margin: 8px;
    }
    
    .main-content {
        padding: 16px 8px;
    }
    
    input, select, button {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .sidebar-nav a {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
}

/* ===== SPECIAL STYLES FOR LOGIN PAGE ===== */
body.login-page {
    background: linear-gradient(135deg, var(--background-light) 0%, #e8f5e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

body.login-page .main-header {
    position: relative;
    margin-bottom: 40px;
}

body.login-page .main-content {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== DASHBOARD SPECIFIC STYLES ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--background-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border-left: 4px solid var(--primary-green);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
}

.stat-label {
    font-size: 14px;
    color: var(--text-medium);
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    z-index: 1;
}

.input-group input {
    padding-left: 48px;
}

.form-help {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 4px;
}

.required {
    color: #e53935;
}

/* ===== LOADING AND ANIMATIONS ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== EDIT FORM STYLES ===== */
.edit-form-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.edit-form-fields {
    flex: 1;
}

.edit-form-buttons {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding-bottom: 16px;
    min-width: 120px;
}

.edit-form-buttons button {
    width: 100%;
    max-width: 200px;
    height: 45px;
    margin: 0;
    font-size: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Responsive untuk edit form */
@media (max-width: 768px) {
    .edit-form-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .edit-form-buttons {
        flex-direction: row;
        justify-content: center;
        padding-bottom: 0;
        gap: 20px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-header,
    .admin-sidebar,
    .main-footer,
    .nav,
    button,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
