/* Modern Page Styles for Accounting System */

/* Page Container */
.modern-page-container {
    padding: 2rem 1rem;
    background: var(--light-bg);
    min-height: 100vh;
}

/* Page Header */
.modern-page-header {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-page-header h3,
.modern-page-header h4,
.modern-page-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.modern-page-header i {
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Section Cards */
.modern-section-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: static;
    overflow: visible;
}

.modern-section-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modern-section-card .section-title {
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.modern-section-card .section-title i {
    margin-left: 0.5rem;
    color: #667eea;
}

/* Form Controls */
.modern-form-group {
    margin-bottom: 1.25rem;
}

.modern-form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.modern-form-label i {
    margin-left: 0.4rem;
    color: #667eea;
    font-size: 1rem;
}

.modern-form-control {
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
    padding: 0.625rem 0.875rem !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem;
}

.modern-form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* Buttons */
.modern-btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    color: #fff;
}

.modern-btn-success {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.modern-btn-warning {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: #1f2937;
}

.modern-btn-danger {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

.modern-btn-secondary {
    background: #6c757d;
    color: white;
}

.modern-btn-info {
    background: var(--info-color);
    border-color: var(--info-color);
    color: #fff;
}

.modern-btn i {
    font-size: 1.1rem;
}

/* Tables */
.modern-table-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.modern-table {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.modern-table thead {
    background: var(--primary-color);
}

.modern-table thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-align: center;
}

.modern-table tbody tr {
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.modern-table tbody td {
    padding: 0.875rem;
    vertical-align: middle;
    text-align: center;
    border-color: #e9ecef;
}

/* Action Buttons in Tables */
.action-btn-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Alert Cards */
.modern-alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-alert i {
    font-size: 1.5rem;
}

.modern-alert-info {
    background: #e6f4f1;
    color: #115e59;
}

.modern-alert-warning {
    background: #fff5e1;
    color: #7c5a0b;
}

.modern-alert-danger {
    background: #fde8e8;
    color: #7f1d1d;
}

/* Loading Spinner */
.modern-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.modern-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
}

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

/* Input Groups Modern Style */
.modern-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.modern-input-group .input-group-text {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-dark);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1rem;
}

.modern-input-group .form-control,
.modern-input-group .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    flex: 1;
    min-width: 150px;
}

/* Modal Improvements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--muted-surface);
    color: var(--text-primary);
}

/* Form Check/Switch */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-switch .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modern-page-container {
        padding: 1rem 0.5rem;
    }

    .modern-section-card {
        padding: 1rem;
    }

    .modern-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .action-btn-group {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-gradient {
    color: var(--primary-color);
}

.shadow-modern {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-modern-hover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
