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

/* Reset untuk sidebar agar tidak terpengaruh container */
.sidebar-overlay,
.sidebar-menu {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e90ff 0%, #ffffff 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-jakarta {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    padding: 10px 25px;
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    white-space: nowrap;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
    text-decoration: none !important;
    color: white !important;
}

.btn-login.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-login.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-login.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-login.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background: linear-gradient(135deg, #0f75d4 0%, #6bb6ff 100%);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed !important;
    top: 0 !important;
    right: -350px !important;
    left: auto !important;
    bottom: auto !important;
    width: 350px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    background: white !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10000 !important;
    transition: right 0.3s ease !important;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.sidebar-menu.active {
    right: 0 !important;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: white;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background: #f0f8ff;
    border-left-color: #1e90ff;
    color: #1e90ff;
    padding-left: 35px;
}

.sidebar-icon {
    font-size: 1.3em;
}

.logo-text h1 {
    font-size: 2.5em;
    color: #1e90ff;
    margin-bottom: 5px;
}

.logo-text p {
    color: #666;
    font-size: 1.1em;
}

/* Tab Navigation Styles */
.tabs-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-button {
    flex: 1;
    padding: 20px 30px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.tab-icon {
    font-size: 1.5em;
}

.tab-text {
    font-size: 1em;
}

/* Content Wrapper */
.content-wrapper {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 500px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-header h2 {
    font-size: 2.2em;
    color: #1e90ff;
    margin-bottom: 10px;
}

.content-header p {
    font-size: 1.1em;
    color: #666;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #1e90ff;
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Info Section */
.info-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.info-section h3 {
    font-size: 1.5em;
    color: #1e90ff;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-box {
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.schedule-box p {
    font-size: 1.1em;
    margin: 10px 0;
}

.schedule-box strong {
    font-weight: 600;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group > label:first-child {
    font-size: 1em;
    margin-bottom: 15px;
    color: #333;
}

.form-group .required {
    color: #1e90ff;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select:disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
    opacity: 0.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-submit,
.btn-reset {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-submit {
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.btn-reset {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-reset:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #f0f0f0 !important;
    color: #333 !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Confirmation Dialog */
.confirm-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
}

.confirm-modal.show {
    display: flex;
}

/* Custom Alert Dialog */
.alert-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
}

.alert-modal.show {
    display: flex;
}

.alert-modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.alert-modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 25px 30px;
    text-align: center;
}

.alert-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: white;
    font-weight: 600;
}

.alert-modal-body {
    padding: 30px;
    text-align: left;
    overflow-y: auto;
    flex: 1;
}

.alert-modal-body div {
    color: #333;
    line-height: 1.8;
    font-size: 1.05em;
}

.alert-modal-body ul {
    margin: 15px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.alert-modal-body li {
    margin: 8px 0;
    color: #555;
}

.alert-modal-footer {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.confirm-modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

.confirm-modal-header {
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    padding: 25px 30px;
    text-align: center;
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: white;
    font-weight: 600;
}

.confirm-modal-body {
    padding: 30px;
    text-align: center;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
}

.confirm-modal-footer {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.confirm-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.confirm-btn-primary {
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white;
}

.confirm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.confirm-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #e0e0e0;
}

.confirm-btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #1e90ff;
}

.close-modal {
    font-size: 2em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #1e90ff;
}

.login-form {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-actions {
    margin-top: 25px;
    padding-top: 0;
    border-top: none;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.login-header h1 {
    font-size: 3em;
    color: #1e90ff;
    margin-bottom: 10px;
}

.login-header h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 1em;
}

.login-form {
    margin-bottom: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.back-link {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0f75d4;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 500;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 2px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 2px solid #cfc;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    border: 2px solid rgba(30, 144, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.2);
    border-color: rgba(30, 144, 255, 0.4);
}

.stat-icon {
    font-size: 3em;
}

.stat-info h3 {
    font-size: 2.5em;
    color: #1e90ff;
    margin: 0;
    font-weight: bold;
}

.stat-info p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 1em;
}

.card-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Filter Bar Styles */
.filter-bar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.filter-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-bar .form-group {
    margin-bottom: 0;
}

.filter-bar .form-group label {
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.filter-bar .form-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    gap: 10px;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.image-modal-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    color: #1e90ff;
}

.btn-download-foto {
    font-size: 0.8em;
    padding: 4px 8px;
    text-decoration: none;
    background: #28a745;
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-download-foto:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
}

.btn-download-modal {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-download-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
}

.foto-thumbnail {
    transition: all 0.3s ease;
}

.foto-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, #1e90ff 0%, #87cefa 100%);
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    vertical-align: middle;
}

.data-table th[rowspan] {
    vertical-align: middle;
    text-align: center;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 30px;
}

/* Responsive Design */

/* Tablet dan Smartphone Landscape */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }

    .content-wrapper {
        padding: 25px;
    }

    .form-container {
        max-width: 100%;
    }
}

/* Tablet dan Smartphone Portrait */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    /* Header */
    header {
        padding: 20px;
    }

    .logo-text h1 {
        font-size: 2em;
    }

    .logo-text p {
        font-size: 1em;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .logo-jakarta {
        height: 30px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .menu-toggle {
        width: 28px;
        height: 28px;
    }

    /* Login Page */
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 2.5em;
    }

    .login-header h2 {
        font-size: 1.5em;
    }

    .login-header p {
        font-size: 0.9em;
    }

    /* Tabs */
    .tabs-container {
        flex-direction: column;
        gap: 10px;
        padding: 8px;
    }

    .tab-button {
        padding: 15px 20px;
        width: 100%;
    }

    .tab-icon {
        font-size: 1.3em;
    }

    .tab-text {
        font-size: 0.9em;
    }

    /* Content */
    .content-wrapper {
        padding: 20px 15px;
        min-height: auto;
    }

    .content-header {
        margin-bottom: 30px;
    }

    .content-header h2 {
        font-size: 1.8em;
    }

    .content-header p {
        font-size: 1em;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 25px;
    }

    .card-icon {
        font-size: 2.5em;
    }

    .card h3 {
        font-size: 1.2em;
    }

    /* Filter Bar */
    .filter-bar {
        padding: 15px;
    }

    .filter-bar form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .form-group {
        width: 100%;
        min-width: auto;
    }

    .filter-bar .form-actions {
        width: 100%;
        flex-direction: column;
    }

    .filter-bar .form-actions button,
    .filter-bar .form-actions a {
        width: 100%;
    }

    /* Forms */
    .form-container {
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 0.9em;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2.5em;
    }

    .stat-info h3 {
        font-size: 2em;
    }

    /* Schedule Box */
    .schedule-box {
        padding: 20px;
    }

    .schedule-box p {
        font-size: 1em;
        margin: 8px 0;
    }

    /* Footer */
    footer {
        padding: 15px;
        font-size: 0.9em;
    }
}

/* Smartphone Kecil */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 8px;
    }

    /* Header */
    header {
        padding: 15px;
        border-radius: 10px;
    }

    .logo-jakarta {
        height: 25px;
    }

    .logo-text h1 {
        font-size: 1.8em;
    }

    .logo-text p {
        font-size: 0.9em;
    }

    .menu-toggle {
        width: 25px;
        height: 25px;
    }

    .sidebar-menu {
        width: 280px !important;
        right: -280px !important;
    }
    
    .sidebar-menu.active {
        right: 0 !important;
    }

    .sidebar-header {
        padding: 20px;
    }

    .sidebar-header h3 {
        font-size: 1.3em;
    }

    .sidebar-link {
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Login Page */
    .login-box {
        padding: 25px 15px;
    }

    .login-header h1 {
        font-size: 2em;
    }

    .login-header h2 {
        font-size: 1.3em;
    }

    .login-header p {
        font-size: 0.85em;
    }

    /* Tabs */
    .tabs-container {
        padding: 5px;
        border-radius: 10px;
    }

    .tab-button {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .tab-icon {
        font-size: 1.2em;
    }

    .tab-text {
        font-size: 0.85em;
    }

    /* Content */
    .content-wrapper {
        padding: 15px 10px;
        border-radius: 10px;
    }

    .content-header h2 {
        font-size: 1.5em;
    }

    .content-header p {
        font-size: 0.9em;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 10px;
    }

    .card-icon {
        font-size: 2.2em;
    }

    .card h3 {
        font-size: 1.1em;
    }

    .card p {
        font-size: 0.9em;
    }

    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.85em;
        margin-bottom: 6px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
        border-radius: 6px;
    }

    .form-group textarea {
        min-height: 80px;
    }

    .btn-submit,
    .btn-reset {
        padding: 10px 18px;
        font-size: 0.95em;
        min-width: auto;
    }

    /* Table Responsive */
    .table-container {
        overflow-x: scroll;
    }

    .data-table {
        font-size: 0.85em;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    /* Schedule Box */
    .schedule-box {
        padding: 15px;
        border-radius: 10px;
    }

    .schedule-box p {
        font-size: 0.9em;
        margin: 6px 0;
    }

    /* Footer */
    footer {
        padding: 12px;
        font-size: 0.85em;
    }
}

/* Smartphone Sangat Kecil */
@media (max-width: 360px) {
    body {
        font-size: 12px;
    }

    .container {
        padding: 5px;
    }

    header {
        padding: 12px;
    }

    .logo-text h1 {
        font-size: 1.5em;
    }

    .login-box {
        padding: 20px 12px;
    }

    .login-header h1 {
        font-size: 1.8em;
    }

    .login-header h2 {
        font-size: 1.2em;
    }

    .content-wrapper {
        padding: 12px 8px;
    }

    .content-header h2 {
        font-size: 1.3em;
    }

    .card {
        padding: 15px;
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="date"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 0.85em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .stat-icon {
        font-size: 2.5em;
    }

    .stat-info h3 {
        font-size: 2em;
    }

    /* Custom Confirmation Dialog Responsive */
    .confirm-modal-content {
        max-width: 95%;
        width: 95%;
    }

    .confirm-modal-header {
        padding: 20px;
    }

    .confirm-modal-header h3 {
        font-size: 1.3em;
    }

    .confirm-modal-body {
        padding: 25px 20px;
    }

    .confirm-modal-body p {
        font-size: 1em;
    }

    .confirm-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .confirm-btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* Custom Alert Dialog Responsive */
    .alert-modal-content {
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
    }

    .alert-modal-header {
        padding: 20px;
    }

    .alert-modal-header h3 {
        font-size: 1.3em;
    }

    .alert-modal-body {
        padding: 25px 20px;
    }

    .alert-modal-body div {
        font-size: 1em;
    }

    .alert-modal-footer {
        padding: 15px 20px;
    }
}
