/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --accent-color: #06b6d4;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --sidebar-bg: #0f172a;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: var(--body-bg);
    color: var(--text-color);
    margin-bottom: 70px;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar design */
.sidebar-wrapper {
    background-color: var(--sidebar-bg) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
}

.text-gradient {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-pills .nav-link {
    color: #94a3b8;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* Card custom styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* Footer styling */
.footer {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    z-index: 999;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #312e81 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.35);
}

/* Table styling */
.table {
    border-color: var(--border-color);
}
.table th {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Scaling utilities */
.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* Certificate Styling */
.certificate-container {
    border: 15px double #334155;
    background: #fff;
    padding: 30px;
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.certificate-logo {
    max-height: 80px;
}
.digital-signature-seal {
    border: 3px solid #dc2626;
    color: #dc2626;
    font-weight: bold;
    padding: 10px;
    transform: rotate(-10deg);
    display: inline-block;
    border-radius: 8px;
    font-family: monospace;
}

/* ==========================================================================
   Master Admin Notifications Widget
   ========================================================================== */

#notificationBellWrapper {
    margin-right: 1.5rem;
}

.notification-bell-icon {
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#notificationBell:hover .notification-bell-icon {
    color: var(--primary-color) !important;
    transform: rotate(15deg) scale(1.1);
}

/* Pulsing red badge to signal new feeds */
.notification-pulse-badge {
    top: 6px !important;
    right: 2px !important;
    padding: 0.3em 0.5em !important;
    font-size: 0.65rem !important;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    animation: notificationPulse 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes notificationPulse {
    0% {
        transform: translate(50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: translate(50%, -50%) scale(1);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        transform: translate(50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Glassmorphism drop-down card layout */
.notification-glass-panel {
    width: 385px !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-top: 10px !important;
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.bg-gradient.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-light-translucent {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Custom Scrollbars for Notification Feeds */
.list-scrollable {
    max-height: 290px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px; /* Offset to prevent custom scrollbar overlap */
}

.list-scrollable::-webkit-scrollbar {
    width: 5px;
}

.list-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.list-scrollable::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.25); /* Sleek translucent primary Indigo */
    border-radius: 10px;
    transition: background 0.25s ease;
}

.list-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.55);
}

/* Notification Feed Items & Hover Dismiss Mechanics */
.notification-item {
    border-bottom: 1px solid #f1f5f9 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none !important;
}

.notification-item:hover {
    background-color: #f8fafc !important;
    transform: translateX(4px);
}

/* Sleek Checkmark button for instant read dismissal */
.dismiss-notification-btn {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.2s ease-in-out;
    color: #94a3b8 !important;
}

.notification-item:hover .dismiss-notification-btn {
    opacity: 1;
    transform: scale(1);
    display: inline-block !important;
}

.dismiss-notification-btn:hover {
    color: #22c55e !important; /* Premium Success Emerald on hover */
    transform: scale(1.2);
}

.bg-primary-subtle {
    background-color: #e0e7ff !important;
}

.bg-success-subtle {
    background-color: #dcfce7 !important;
}

.bg-danger-subtle {
    background-color: #fee2e2 !important;
}

/* ==========================================================================
   Active & Attractive Forms and Modals
   ========================================================================== */

/* Form Controls (Inputs, Selects, Textareas) */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    background-color: #f8fafc;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-control:hover, .form-select:hover {
    background-color: #ffffff;
    border-color: #94a3b8;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.form-control:focus + .form-label, 
.form-select:focus + .form-label,
.form-group:focus-within .form-label {
    color: var(--primary-color);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-backdrop.show {
    opacity: 0.6;
    backdrop-filter: blur(4px);
    background-color: #0f172a;
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: var(--sidebar-bg);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Checkboxes and Radios */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
    transform: scale(1.1);
}

.form-check-label {
    cursor: pointer;
    padding-top: 0.1em;
}

/* Submit Buttons in Forms */
form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

form button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

form button[type="submit"]:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

