/* Custom Styles for MNSUAM Peer Review - Modern Professional Design */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar - Modern Design */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F6F3EC;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0B6B3A 0%, #0d8a4a 100%);
    border-radius: 10px;
    border: 2px solid #F6F3EC;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #084d2a 0%, #0B6B3A 100%);
}

/* Professional Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0B6B3A 0%, #0d8a4a 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(11, 107, 58, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(11, 107, 58, 0.4);
    background: linear-gradient(135deg, #0d8a4a 0%, #0B6B3A 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(11, 107, 58, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #CFA64E 0%, #e0b865 100%);
    color: #0A2F1B;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(207, 166, 78, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(207, 166, 78, 0.4);
    background: linear-gradient(135deg, #e0b865 0%, #CFA64E 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e85d6d 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #e85d6d 0%, #dc3545 100%);
}

.btn-outline {
    background: transparent;
    color: #0B6B3A;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #0B6B3A;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: #0B6B3A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(11, 107, 58, 0.3);
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0B6B3A 0%, #CFA64E 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Form input focus styles - Enhanced */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0B6B3A;
    box-shadow: 0 0 0 4px rgba(11, 107, 58, 0.1), 0 4px 15px rgba(11, 107, 58, 0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

input,
textarea,
select {
    transition: all 0.3s ease;
}

/* Button hover effects - Enhanced */
button,
a[role="button"],
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

button:not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-outline):hover,
a[role="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Table row hover - Enhanced */
tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(11, 107, 58, 0.05) 0%, rgba(11, 107, 58, 0.02) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Loading spinner - Enhanced */
.spinner {
    border: 4px solid rgba(246, 243, 236, 0.3);
    border-top: 4px solid #0B6B3A;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(11, 107, 58, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert messages - Modern Design */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #0B6B3A;
    color: #155724;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #0c5460;
    color: #0c5460;
}

/* File upload area - Enhanced */
.file-upload-area {
    border: 2px dashed #0B6B3A;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(11, 107, 58, 0.02) 0%, rgba(207, 166, 78, 0.02) 100%);
}

.file-upload-area:hover {
    background: linear-gradient(135deg, rgba(11, 107, 58, 0.08) 0%, rgba(207, 166, 78, 0.08) 100%);
    border-color: #CFA64E;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(11, 107, 58, 0.15);
}

/* Toast Notification - Enhanced */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-left: 5px solid;
    backdrop-filter: blur(10px);
}

.toast-success {
    border-left-color: #0B6B3A;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%);
}

.toast-success::before {
    content: '✓';
    color: #0B6B3A;
    font-weight: bold;
    font-size: 22px;
    background: rgba(11, 107, 58, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.toast-error::before {
    content: '✗';
    color: #dc3545;
    font-weight: bold;
    font-size: 22px;
    background: rgba(220, 53, 69, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-info {
    border-left-color: #0c5460;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9fb 100%);
}

.toast-info::before {
    content: 'ℹ';
    color: #0c5460;
    font-weight: bold;
    font-size: 22px;
    background: rgba(12, 84, 96, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast.fade-out {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .hide-mobile {
        display: none;
    }
    
    .toast-container {
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

@media (min-width: 641px) {
    .show-mobile {
        display: none;
    }
}

/* Dashboard Charts Styling - Enhanced */
.dashboard-chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 243, 236, 0.5) 100%);
    border-radius: 12px;
    padding: 16px;
}

.dashboard-chart-container canvas {
    max-height: 100%;
}

/* Chart card styling - Enhanced */
.chart-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chart-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0B6B3A 0%, #CFA64E 100%);
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.chart-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0A2F1B;
    background: linear-gradient(135deg, #0B6B3A 0%, #0d8a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Statistics summary cards - Enhanced */
.stat-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0B6B3A 0%, #CFA64E 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0B6B3A 0%, #0d8a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Sidebar Styles - Enhanced */
#sidebar {
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, #0B6B3A 0%, #084d2a 100%);
}

#sidebar nav ul li a {
    position: relative;
    transition: all 0.3s ease;
}

#sidebar nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #CFA64E 0%, #e0b865 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
    box-shadow: 0 0 10px rgba(207, 166, 78, 0.5);
}

#sidebar nav ul li a:hover::before,
#sidebar nav ul li a.bg-mnsu-gold::before {
    height: 70%;
}

#sidebar nav ul li a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar scrollbar */
#sidebar nav::-webkit-scrollbar {
    width: 8px;
}

#sidebar nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#sidebar nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(207, 166, 78, 0.5) 0%, rgba(207, 166, 78, 0.3) 100%);
    border-radius: 10px;
}

#sidebar nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(207, 166, 78, 0.7) 0%, rgba(207, 166, 78, 0.5) 100%);
}

/* Mobile sidebar overlay */
#sidebarOverlay {
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Sidebar animation */
@media (max-width: 1023px) {
    #sidebar {
        transform: translateX(-100%);
    }
    
    #sidebar:not(.-translate-x-full) {
        transform: translateX(0);
    }
}

/* Top header bar - Enhanced */
header.bg-white {
    z-index: 30;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

header.bg-mnsu-green {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure main content doesn't overflow */
.flex-1.overflow-hidden {
    min-height: 100vh;
}

/* Password Toggle Button - Enhanced */
.password-wrapper {
    position: relative;
}

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.password-toggle:hover {
    background: rgba(11, 107, 58, 0.1);
    color: #0B6B3A !important;
    transform: scale(1.1);
}

.password-toggle:focus {
    outline: 2px solid #CFA64E;
    outline-offset: 2px;
    border-radius: 50%;
}

.password-toggle svg {
    pointer-events: none;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #0B6B3A 0%, #CFA64E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
