/* ====== FULLSCREEN BACKGROUND ====== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #5b1dbe, #7f3ce0);
    min-height: 100vh;
}

/* ====== ACCESS DENIED SCREEN - FIXED CENTER ====== */
#accessDenied {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #5b1dbe, #7f3ce0) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9998 !important;
}

.access-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.access-card h1 {
    font-size: 48px;
    color: #e53935;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.access-card p {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.access-card button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #5b1dbe, #7f3ce0);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.access-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(91, 29, 190, 0.4);
}

/* ===== LOADING SCREEN ===== */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #5b1dbe, #7f3ce0);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 24px;
    z-index: 9999;
}

#loadingScreen small {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.9;
}

/* =========== MAIN CONTENT CONTAINER - CENTER SEMPURNA ========= */
#mainContent {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
}

.container {
    width: 90% !important;
    max-width: 900px !important;
    background: rgba(255,255,255,0.98) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== HEADERS ===== */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #5b1dbe;
    font-weight: bold;
    font-size: 32px;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2e3a59;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 2px solid #e0e3eb;
    background: #ffffff;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #5b1dbe;
    box-shadow: 0 0 0 3px rgba(91, 29, 190, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #a8b0c1;
}

.form-group input[type="date"] {
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    background: linear-gradient(135deg, #5b1dbe, #7f3ce0);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(91, 29, 190, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #4a16a1, #6c2bd1);
    box-shadow: 0 6px 20px rgba(91, 29, 190, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

#btnSaveMore {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#btnSaveMore:hover {
    background: linear-gradient(135deg, #5568d3, #6a3d99);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    #mainContent {
        padding: 20px 10px !important;
    }

    .container {
        width: 95% !important;
        padding: 30px 20px !important;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 25px;
    }

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

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

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 13px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .access-card {
        width: 90%;
        padding: 40px 30px;
    }

    .access-card h1 {
        font-size: 36px;
    }

    .access-card p {
        font-size: 16px;
    }
}