/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================== */
/* === STYLES UNTUK INDEX.PHP (LOGIN) === */
/* ======================================== */

.page-login {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0A2540 0%, #123055 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.page-login .login-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.page-login .login-header {
    text-align: center;
    margin-bottom: 28px;
}

.page-login .login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0A2540;
}

.page-login .login-header h1 span {
    color: #D4AF37;
}

.page-login .form-group {
    margin-bottom: 20px;
    position: relative;
}

.page-login .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0A2540;
    font-size: 0.95rem;
}

.page-login .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
    color: #0A2540;
    background-color: #f9fbfd;
    transition: all 0.3s ease;
}

.page-login .form-group input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: #fff;
}

.page-login .form-group input.filled {
    border-color: #D4AF37;
    background-color: #f0f7ff;
}

.page-login .toggle-password {
    position: absolute;
    right: 12px;
    top: 40px;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.page-login .toggle-password:hover,
.page-login .toggle-password.active {
    color: #D4AF37;
}

.page-login .btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #0A2540, #081c30);
    color: #D4AF37;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.page-login .btn-login.active {
    cursor: pointer;
    opacity: 1;
    background: linear-gradient(to right, #0A2540, #071a2b);
}

.page-login .btn-login.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* ======================================== */
/* === STYLES UNTUK GEMINI.PHP (APP) === */
/* ======================================== */

.page-app {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #E9EEF2;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.page-app .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 0 1.5rem;
    height: 65px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1002;
    color: #1a1a1a;
    border-bottom: 1px solid #eee;
}

.page-app .topbar-left {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A2540;
}

.page-app .menu-toggle {
    background: none;
    border: none;
    color: #0A2540;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 12px;
    display: none;
}

.page-app .topbar-left span {
    color: #D4AF37;
}

.page-app .topbar-right {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.page-app .topbar-right:hover {
    color: #D4AF37;
}

.page-app .page-wrapper {
    display: flex;
    flex: 1;
    height: calc(100vh - 65px);
    position: relative;
}

.page-app .sidebar {
    width: 260px;
    background: #0A2540;
    color: #ffffff;
    padding: 24px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    position: fixed;
    top: 65px;
    left: 0;
    height: calc(100vh - 65px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.page-app .sidebar.open {
    transform: translateX(0);
}

.page-app .nav-links {
    list-style: none;
    padding: 0 16px;
    margin-top: 20px;
}

.page-app .nav-links li {
    margin-bottom: 8px;
}

.page-app .nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 1rem;
    border-left: 4px solid transparent;
}

.page-app .nav-links a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #D4AF37;
    opacity: 0.8;
    transition: all 0.25s ease;
}

.page-app .nav-links a:hover,
.page-app .nav-links a.active {
    background: rgba(212, 175, 55, 0.08);
    color: #D4AF37;
    padding-left: 12px;
    border-left: 4px solid #D4AF37;
}

.page-app .nav-links a:hover i,
.page-app .nav-links a.active i {
    opacity: 1;
    color: #D4AF37;
}

.page-app .main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
    position: relative;
    z-index: 999;
}

.page-app .input-container {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    border-top: 4px solid #0A2540;
    position: relative;
}

.page-app .input-header {
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 16px;
    margin-bottom: 28px;
}

.page-app .input-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0A2540;
    text-align: left;
}

.page-app .form-group {
    margin-bottom: 24px;
    position: relative;
}

.page-app .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.page-app .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    color: #555;
    background-color: #F9FAFB;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.page-app .form-group textarea:focus {
    outline: none;
    border-color: #0A2540;
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.15);
    background-color: #fff;
}

.page-app .response-display {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #D4AF37;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Segoe UI', sans-serif;
    color: #EBF0F3;
    background-color: #0A2540;
    min-height: 150px;
    overflow-y: auto;
    line-height: 1.6;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.1);
}

.page-app .response-display:empty::before {
    content: attr(data-placeholder);
    color: rgba(235, 240, 243, 0.6);
    font-style: italic;
}

.page-app .response-display h1,
.page-app .response-display h2 {
    color: #D4AF37;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
}

.page-app .response-display h1 {
    font-size: 1.5rem;
    border-bottom: 1px solid #D4AF37;
    padding-bottom: 4px;
}

.page-app .response-display h2 {
    font-size: 1.25rem;
}

.page-app .response-display p {
    margin-bottom: 12px;
}

.page-app .response-display ol {
    padding-left: 25px;
    margin-bottom: 12px;
}

.page-app .response-display li {
    margin-bottom: 6px;
}

.page-app .response-display strong {
    color: #D4AF37;
    font-weight: 600;
}

.page-app .btn-submit {
    width: 100%;
    padding: 14px;
    background: #D4AF37;
    color: #0A2540;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.page-app .btn-submit:disabled {
    background: #aaa;
    color: #fff;
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.page-app .btn-submit:not(:disabled):hover {
    background: #c09e30;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.page-app .sidebar-overlay {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 65px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-app .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .page-app .main-content {
        padding: 1.5rem 1rem;
        margin-left: 0;
    }

    .page-app .main-content.sidebar-open {
        margin-left: 0;
    }

    .page-app .menu-toggle {
        display: block;
    }

    .page-app .topbar {
        padding: 0 1rem;
    }
}

@media (min-width: 769px) {
    .page-app .sidebar {
        transform: translateX(0);
        z-index: 1000;
    }

    .page-app .main-content {
        margin-left: 260px;
    }

    .page-app .menu-toggle,
    .page-app .sidebar-overlay {
        display: none !important;
    }
}



/* === STYLES UNTUK SWEETALERT CUSTOM === */
    .swal-popup {
        border-radius: 14px !important;
        padding: 24px !important;
        font-family: 'Segoe UI', sans-serif !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    }

    .swal-title {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: #0A2540 !important;
        margin-bottom: 12px !important;
    }
    
    .swal-confirm {
    background: linear-gradient(to right, #0A2540, #081c30) !important;
    color: #D4AF37 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2) !important;
}

.swal-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3) !important;
    background: linear-gradient(to right, #071a2b, #051220) !important;
}

