/* Pengajuan Surat Form Styles */

body {
    background-image: url('../images/kantor.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
}

.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
}

.form-control:focus, .form-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-submit {
    background-color: #4CAF50;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    display: none;
}

.preview-video {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.required:after {
    content: " *";
    color: red;
}

.form-icon {
    color: #4CAF50;
    margin-right: 10px;
}

.upload-container {
    position: relative;
}

.camera-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.camera-buttons .btn {
    font-size: 12px;
    padding: 5px 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .camera-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .preview-image, .preview-video {
        max-width: 150px;
        max-height: 150px;
    }
}

/* File upload area styling */
.upload-area {
    border: 2px dashed #4CAF50;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #45a049;
    background: #e8f5e8;
}

.upload-area.dragover {
    border-color: #45a049;
    background: #e8f5e8;
    transform: scale(1.02);
}

/* Loading animation */
.upload-loading {
    display: none;
    text-align: center;
    padding: 10px;
}

.upload-loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message */
.upload-success {
    color: #4CAF50;
    font-weight: 600;
    margin-top: 10px;
}

/* Error message */
.upload-error {
    color: #dc3545;
    font-weight: 600;
    margin-top: 10px;
}
