/* Modern Head 2 CSS - Login & Simple Pages - SSCN Verifikasi 2025 */

/* Import dari modern-head.css untuk konsistensi */
@import url('modern-head.css');

/* Specific styles untuk halaman login dan simple pages */

/* Hide dialog close button */
.ui-dialog-titlebar-close {
    visibility: hidden;
}

/* Legacy style support */
.style2 {
    color: var(--primary-color, #0033FF);
}

/* Enhanced modal untuk head2 */
.modal#newModal {
    z-index: 1050;
}

.modal#newModal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal#newModal .modal-content {
    border-radius: var(--border-radius-lg, 15px);
    border: none;
    box-shadow: var(--card-hover-shadow, 0 8px 30px rgba(50, 162, 215, 0.25));
}

.modal#newModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color, #32a2d7) 0%, var(--primary-dark, #2591c1) 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal#newModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.modal#newModal .modal-body {
    padding: 2rem;
}

.modal#newModal .form-group {
    margin-bottom: 1.5rem;
}

.modal#newModal .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.modal#newModal .form-control {
    border-radius: var(--border-radius, 8px);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.modal#newModal .form-control:focus {
    border-color: var(--primary-color, #32a2d7);
    box-shadow: 0 0 0 3px rgba(50, 162, 215, 0.1);
}

.modal#newModal .form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.modal#newModal .help-block {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.modal#newModal .btn-primary {
    background: linear-gradient(45deg, var(--primary-color, #32a2d7), var(--primary-dark, #2591c1));
    border: none;
    border-radius: var(--border-radius, 8px);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(50, 162, 215, 0.3);
}

.modal#newModal .btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark, #2591c1), var(--primary-color, #32a2d7));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 162, 215, 0.4);
}

.modal#newModal .btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    border-radius: var(--border-radius, 8px);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal#newModal .btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-1px);
}

.modal#newModal .alert {
    border-radius: var(--border-radius, 8px);
    border: none;
    padding: 1rem;
}

.modal#newModal .alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Loading image styling */
.modal#newModal #loadingImage {
    text-align: center;
    padding: 1rem;
}

.modal#newModal #loadingImage img {
    max-width: 50px;
    height: auto;
}

/* Form actions styling */
.modal#newModal .form-actions {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal#newModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal#newModal .modal-body {
        padding: 1.5rem 1rem;
    }
    
    .modal#newModal .modal-header {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modal#newModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal#newModal .modal-body {
        padding: 1rem;
    }
    
    .modal#newModal .form-group {
        margin-bottom: 1rem;
    }
}

/* DataTables customization if present */
.dataTables_wrapper {
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* Enhanced table styling */
.table {
    border-radius: var(--border-radius, 8px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color, #32a2d7) 0%, var(--primary-dark, #2591c1) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(50, 162, 215, 0.1);
}

/* Security headers info styling */
.security-info {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    padding: 0.5rem;
}

/* Print media query */
@media print {
    .modal, .btn, .alert {
        display: none !important;
    }
}
