/* assets/css/style.css */
/* Premium Custom Style Sheet for PhD Course Work System */

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

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --secondary: #0ea5e9;
    --dark-bg: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background-color: #f3f4f6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(224, 231, 255, 0.6) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(224, 242, 254, 0.6) 0, transparent 50%);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphic Navigation Bar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1050 !important;
    position: relative !important;
}
.navbar-custom .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: #ffffff !important;
}

/* Premium Card Layouts */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Gradient text & background headers */
.bg-gradient-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
}

/* Buttons Styling */
.btn-premium {
    background: linear-gradient(90deg, #4f46e5 0%, #0ea5e9 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    color: #ffffff;
}

.btn-premium-outline {
    border: 2px solid #4f46e5;
    background: transparent;
    color: #4f46e5;
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-premium-outline:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    border-color: #4f46e5;
}

/* File Upload Premium Style */
.custom-file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    background: rgba(248, 250, 252, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-file-upload:hover {
    border-color: #4f46e5;
    background: var(--primary-light);
}

/* Badges */
.badge-status {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Custom Progress Bar for Profile Completeness */
.progress-container {
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
    overflow: hidden;
}
.progress-bar-glow {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page footer custom look */
footer {
    margin-top: auto;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Tables styling */
.table-custom th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.table-custom td {
    vertical-align: middle;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

/* Printing styles overlay */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Times New Roman', Times, serif;
        font-size: 12pt;
    }
    .navbar, footer, .btn, .no-print, .alert {
        display: none !important;
    }
    .card, .glass-card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }
    .print-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-header {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #000000;
        padding-bottom: 15px;
    }
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    .print-table th, .print-table td {
        border: 1px solid #000000 !important;
        padding: 8px !important;
    }
    .print-photo {
        width: 120px;
        height: 150px;
        border: 1px solid #000000;
        object-fit: cover;
    }
    .print-signature {
        width: 150px;
        height: 50px;
        border-bottom: 1px solid #000000;
        object-fit: contain;
    }
}

/* Fix navbar dropdown clipping and stack order */
.navbar, .navbar-collapse, .navbar-nav, .nav-item, .dropdown {
    overflow: visible !important;
}
.dropdown-menu {
    z-index: 9999 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
.dropdown-menu.show {
    display: block !important;
}
.dropdown-menu li {
    display: block !important;
    height: auto !important;
}
.dropdown-item {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
.dropdown-item.text-danger {
    color: #dc3545 !important;
}
