* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(180deg, #006994 0%, #004a70 100%);
    color: #ffffff;
    min-height: 100vh;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #006994 0%, #003d5c 100%);
}

.login-container {
    background: rgba(0, 105, 148, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 400px;
    border: 2px solid #00a8cc;
}

.login-container h2, .login-container h3 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.logo {
    width: 100px;
    margin-bottom: 15px;
}

header {
    background: linear-gradient(90deg, #005f85 0%, #0080a8 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #00a8cc;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-left h1 {
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header-left p {
    font-size: 0.85rem;
    color: #b3e5fc;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: rgba(0, 90, 130, 0.85);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    border: 1px solid #00a8cc;
    backdrop-filter: blur(5px);
}

.card h2, .card h3, .card h4 {
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label,
.card label {
    color: #b3e5fc;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #00a8cc;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #003d5c;
    font-size: 14px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #00e5ff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #00b4d8, #0096c7);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0096c7, #0077b6);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    background: linear-gradient(90deg, #48cae4, #00b4d8);
    color: #003d5c;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #90e0ef, #48cae4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(90deg, #e63946, #d62839);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(90deg, #d62839, #c1121f);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.alert {
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: 500;
}

.error {
    background: rgba(230, 57, 70, 0.9);
    color: white;
    border: 1px solid #ff6b6b;
}

.success {
    background: rgba(46, 204, 113, 0.9);
    color: white;
    border: 1px solid #6eff9e;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px;
    background: rgba(0, 168, 204, 0.2);
    border-radius: 6px;
}

.radio-group label {
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    color: #ffffff;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 168, 204, 0.3);
    text-align: left;
}

th {
    background: rgba(0, 180, 216, 0.4);
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(0, 168, 204, 0.15);
}

.kegiatan-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.kegiatan-row textarea {
    flex: 1;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(0, 90, 130, 0.6);
    border: 2px solid #00a8cc;
    cursor: pointer;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(0, 168, 204, 0.4);
}

.tab-btn.active {
    background: linear-gradient(90deg, #00b4d8, #0096c7);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.4);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 50, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #005f85 0%, #004a70 100%);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border: 2px solid #00a8cc;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.modal.active {
    display: flex;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.form-row input,
.form-row select,
.form-row button {
    flex: 1;
    min-width: 150px;
}

.table-responsive {
    overflow-x: auto;
}

.text-muted {
    color: #90e0ef;
    font-style: italic;
}

.text-danger {
    color: #ff6b6b;
    font-style: italic;
    font-weight: bold;
}

.foto-info {
    margin-top: 8px;
    font-size: 12px;
    color: #90e0ef;
}

.foto-info a {
    color: #00e5ff;
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #00a8cc;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

#camera-preview {
    width: 100%;
    display: block;
    transform: scaleX(-1);
}

#camera-canvas {
    display: none;
}

.camera-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.btn-capture {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5ff, #0096c7);
    border: 4px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.5);
    transition: all 0.2s;
}

.btn-capture:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.7);
}

.btn-capture:active {
    transform: scale(0.95);
}

.btn-close-camera {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.9);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captured-preview {
    margin-top: 10px;
    text-align: center;
}

.captured-preview img {
    max-width: 300px;
    border-radius: 8px;
    border: 3px solid #00e5ff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.captured-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.camera-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 168, 204, 0.1);
    border: 2px dashed #00a8cc;
    border-radius: 10px;
    color: #90e0ef;
}

.camera-placeholder .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* ===== ABOUT MODAL ===== */
.about-modal {
    text-align: center;
    max-width: 450px;
    background: linear-gradient(135deg, #003d5c 0%, #005f85 100%);
    border: 2px solid #00e5ff;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.about-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 168, 204, 0.3);
    margin-bottom: 20px;
}

.about-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.about-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 10px 0 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.about-header h3 {
    color: #00e5ff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.about-body {
    text-align: left;
    padding: 10px 20px;
}

.about-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 168, 204, 0.15);
}

.about-item:last-child {
    border-bottom: none;
}

.about-label {
    color: #90e0ef;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.about-value {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

.about-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 168, 204, 0.3);
}

.about-footer .btn {
    padding: 12px 40px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 8px;
    }
    
    .tabs {
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .camera-container {
        max-width: 100%;
    }
}