/* Ahli Waris Custom Styles */
.container-ahli-waris {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.header-ahli-waris {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-ahli-waris h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.status-check h2 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #e0e0e0;
}

.status-inputs button {
    padding: 10px 20px;
    border-radius: 8px; /* Radius standar untuk semua sudut */
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-inputs button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.input-group {
    flex: 1;
    min-width: 250px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4dabf7;
    background-color: rgba(255, 255, 255, 0.15);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Modern Button Style */
.btn-modern {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    box-shadow: 0 8px 18px rgba(0, 114, 255, 0.25);
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 114, 255, 0.35);
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
}

.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 114, 255, 0.25);
}

.btn-modern i {
    margin-right: 10px;
    font-size: 18px;
}

.btn-modern .btn-label {
    vertical-align: middle;
}

.btn-modern .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 12px;
    animation: spin 0.8s linear infinite;
    opacity: 0;
}

.btn-modern.loading .spinner {
    opacity: 1;
}

.btn-modern.loading {
    opacity: 0.9;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
.main-content-ahli-waris {
    margin-bottom: 40px;
}

.title-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.title-section h2 {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: 700;
}

.title-section p {
    color: #666;
    font-size: 16px;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

/* Card Styles */
.card-ahli-waris {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header-ahli-waris {
    padding: 20px 25px;
    color: white;
}

.card-header-ahli-waris.blue {
    background: linear-gradient(to right, #1976d2, #2196f3);
}

.card-header-ahli-waris.red {
    background: linear-gradient(to right, #d32f2f, #f44336);
    padding: 18px 25px;
}

.card-header-ahli-waris h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-header-ahli-waris .subtitle {
    font-size: 14px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.card-header-ahli-waris .note {
    font-size: 14px;
    margin-top: 8px;
    color: #ffeb3b;
    font-weight: 500;
}

.card-header-ahli-waris .note i {
    margin-right: 8px;
}

.card-body-ahli-waris {
    padding: 25px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

.error-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.document-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.document-item:last-child {
    border-bottom: none;
}

.doc-content h4 {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.doc-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* File Upload Styles */
.upload-area {
    background-color: #f8f9fa;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.upload-area:hover {
    border-color: #2196f3;
    background-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    display: block; /* Ensure it takes up space if position fails, but opacity 0 hides it */
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    cursor: pointer;
    position: relative;
    z-index: 5;
    border: none;
}

.upload-area:hover .upload-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.upload-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.file-info {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.3s;
    max-width: 90%;
    word-wrap: break-word;
}

.upload-area.has-file {
    border-color: #4caf50;
    background-color: #e8f5e9;
    border-style: solid;
}

.upload-area.has-file .file-info {
    color: #2e7d32;
}

.upload-area.error {
    border-color: #f44336;
    background-color: #ffebee;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-submit {
    background: linear-gradient(to right, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

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

.btn-submit i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-ahli-waris {
        padding: 20px;
    }

    .header-ahli-waris h1 {
        font-size: 24px;
    }

    .status-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .input-group {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}
