/* assets/css/style.css */
:root {
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --secondary: #f8f9fc;
    --danger: #e74a3b;
    --success: #1cc88a;
    --text: #5a5c69;
    --light: #f8f9fc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Struktur Layout */
body {
    margin: auto;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
    margin-top: 70px; /* Sesuaikan dengan tinggi header */
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Header Fix */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        margin-top: 60px;
    }
    
    .content-container {
        padding: 0 10px;
    }
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: var(--primary-dark);
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-logout {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.btn-logout:hover {
    color: #e74a3b;
}

.dashboard-main {
    padding: 30px;
    flex: 1;
    background-color: #f8f9fc;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.card-body p {
    color: #666;
    margin: 0;
}

.card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: right;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: #4e73df;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-card:hover {
    background: #2e59d9;
}

.btn-card-sm {
    padding: 5px 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.btn-card-sm:hover {
    background: #e9ecef;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.text-green {
    color: #1cc88a;
}

.text-red {
    color: #e74a3b;
}

/* Background Colors */
.bg-blue { background: #4e73df; }
.bg-green { background: #1cc88a; }
.bg-purple { background: #6f42c1; }
.bg-orange { background: #fd7e14; }
.bg-red { background: #e74a3b; }
.bg-teal { background: #20c9a6; }

/* Recent Activity */
.recent-activity {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.recent-activity h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e73df;
    font-size: 1rem;
}

.activity-details p {
    margin: 0 0 5px 0;
    color: #333;
}

.activity-details small {
    color: #888;
    font-size: 0.85rem;
}



/* Responsive */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* System Banner - Fixed Version */
.system-banner {
    position: relative;
    width: 100%;
    height: auto; /* Ubah dari fixed height ke auto */
    min-height: 150px; /* Tambahkan min-height */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px 20px; /* Tambahkan padding */
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Pastikan tidak ada overflow hidden */
    box-sizing: border-box; /* Include padding dalam perhitungan width */
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.banner-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.banner-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Perbaikan untuk viewport kecil */
@media (max-width: 768px) {
    .system-banner {
        min-height: 120px;
        padding: 30px 15px;
    }
    
    .banner-content {
        padding: 15px;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .system-banner {
        min-height: 100px;
        padding: 20px 10px;
    }
    
    .banner-content h1 {
        font-size: 1.3rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.banner-content h1 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Styles */
.dashboard-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header h2 {
    font-size: 1.3rem;
    color: #5a5c69;
    margin: 0;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #5a5c69;
    cursor: pointer;
    margin-right: 15px;
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #5a5c69;
    cursor: pointer;
    position: relative;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74a3b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: #858796;
}

.btn-logout {
    color: #5a5c69;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.btn-logout:hover {
    color: #e74a3b;
}

/* Sidebar Styles */
/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    left: 0;
    top: 0;
}

/* Footer Styles */
.main-footer {
    background: #fff;
    padding: 15px 30px;
    border-top: 1px solid #eee;
    margin-left: 250px;
    transition: all 0.3s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #858796;
}

.footer-content a {
    color: #4e73df;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-footer {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .user-info {
        display: none;
    }
    
    .dashboard-header {
        padding: 15px;
    }
    
    .main-footer {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Header Styles */
.main-header {
    background-color: #4e73df;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
}

/* Search Box Styles */
.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-input {
    display: flex;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.search-input input {
    flex: 1;
    padding: 8px 15px;
    border: none;
    outline: none;
}

.search-input select {
    width: 150px;
    padding: 8px;
    border: none;
    border-left: 1px solid #eee;
    outline: none;
    cursor: pointer;
}

.search-input button {
    background: #2e59d9;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.search-input button:hover {
    background: #1a3a9b;
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.8;
}

.logout-btn {
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: #f8f9fc;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .user-profile {
        order: 2;
        margin-left: auto;
    }
    
    .search-box {
        order: 3;
        flex: 0 0 100%;
        margin: 10px 0 0 0;
    }
    
    .user-info {
        display: none;
    }
}

/* Tombol Aksi */
.page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn i {
    font-size: 0.9em;
}

.btn-primary {
    background-color: #4e73df;
    color: white;
    border: 1px solid #4e73df;
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

.btn-success {
    background-color: #1cc88a;
    color: white;
    border: 1px solid #1cc88a;
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #17a673;
}

/* Responsif untuk tombol */
@media (max-width: 576px) {
    .page-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

/* Header Left Styles */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-btn {
    color: white;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-left {
        gap: 10px;
    }
    
    .dashboard-btn {
        font-size: 1rem;
        padding: 6px;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
}
/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
    white-space: nowrap;
}

/* Responsive Header */
@media (max-width: 992px) {
    .header-container {
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .header-left {
        order: 1;
    }
    
    .user-profile {
        order: 2;
        margin-left: auto;
    }
    
    .search-box {
        order: 3;
        flex: 0 0 100%;
        margin-top: 10px;
    }
}

/* Alternatif tombol dashboard lebih menonjol */
.dashboard-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.dashboard-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dashboard-btn i {
    font-size: 1.1em;
}

/* Tabel Guru */
.table-guru {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table-guru thead th {
    background-color: #4e73df;
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border: none;
    position: sticky;
    top: 0;
}

.table-guru tbody tr {
    transition: all 0.2s ease;
}

.table-guru tbody tr:nth-child(even) {
    background-color: #f8f9fc;
}

.table-guru tbody tr:hover {
    background-color: #f1f3f9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-guru td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e6f0;
    vertical-align: middle;
}

/* Foto Profil */
.profile-img-table {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e3e6f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badge Status */
.badge-status {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-aktif {
    background-color: #1cc88a;
    color: white;
}

.badge-nonaktif {
    background-color: #e74a3b;
    color: white;
}

/* Tombol Aksi */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
    margin-right: 0.25rem;
    transition: all 0.2s;
    box-shadow: none;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-view {
    background-color: #36b9cc;
    border-color: #36b9cc;
}

.btn-edit {
    background-color: #f6c23e;
    border-color: #f6c23e;
}

.btn-delete {
    background-color: #e74a3b;
    border-color: #e74a3b;
}

/* Responsif */
@media (max-width: 768px) {
    .table-guru {
        display: block;
        overflow-x: auto;
    }
    
    .table-guru thead th {
        padding: 0.5rem;
    }
    
    .table-guru td {
        padding: 0.5rem;
    }
    
    .profile-img-table {
        width: 35px;
        height: 35px;
    }
}