/* assets/css/custom.css */

/* Core Academic Enhancements */
:root {
    --accent-color: #ff7a00 !important;
    --nav-hover-color: #ff7a00 !important;
    --nav-dropdown-hover-color: #ff7a00 !important;
    --primary-gradient: linear-gradient(135deg, #ff7a00 0%, #d35400 100%) !important;
    --success-gradient: linear-gradient(135deg, #02aab0 0%, #00cdac 100%);
    --warning-gradient: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
    --info-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(255, 122, 0, 0.15) !important;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
}

/* Authentication Page Styling */
.auth-body {
    background: #f4f8ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

.auth-header {
    background: var(--primary-gradient);
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
}

.auth-header h3 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 26px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 0;
    font-size: 14px;
}

.auth-content {
    padding: 40px 35px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #ff7a00;
}

.form-control:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 0.25rem rgba(255, 122, 0, 0.15);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #ff8a1a 0%, #b84300 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.25);
}

/* Dashboard Panels & Cards */
.student-welcome-banner {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.student-welcome-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.student-welcome-banner h2 {
    color: #ffffff;
    font-weight: 700;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #ff7a00;
}

.stat-card.card-success::before { background: #00cdac; }
.stat-card.card-warning::before { background: #f5af19; }
.stat-card.card-info::before { background: #0072ff; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-card .card-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.stat-card.card-primary .card-icon { background: rgba(255, 122, 0, 0.1); color: #ff7a00; }
.stat-card.card-success .card-icon { background: rgba(2, 170, 176, 0.1); color: #02aab0; }
.stat-card.card-warning .card-icon { background: rgba(245, 175, 25, 0.1); color: #f5af19; }
.stat-card.card-info .card-icon { background: rgba(0, 114, 255, 0.1); color: #0072ff; }

/* Table Enhancements */
.custom-table-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.custom-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

.custom-table thead th {
    background-color: transparent;
    border-bottom: 2px solid #edf2f9;
    color: #8898aa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 15px;
}

.custom-table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.custom-table tbody tr:hover {
    background-color: #f8fafd;
    transform: scale(1.005);
}

.custom-table tbody td {
    padding: 18px 15px;
    vertical-align: middle;
    border-top: 1px solid #edf2f9;
    border-bottom: 1px solid #edf2f9;
    color: #495057;
    font-size: 15px;
}

.custom-table tbody tr td:first-child {
    border-left: 1px solid #edf2f9;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.custom-table tbody tr td:last-child {
    border-right: 1px solid #edf2f9;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Badge Status Styles */
.badge-pill-status {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    text-align: center;
}

.badge-status-approved {
    background-color: rgba(0, 205, 172, 0.15);
    color: #00aa8f;
}

.badge-status-pending {
    background-color: rgba(245, 175, 25, 0.15);
    color: #d18d00;
}

.badge-status-rejected {
    background-color: rgba(241, 39, 17, 0.15);
    color: #cf2210;
}

/* Sidebar Profile UI */
.profile-sidebar {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 30px 25px;
    text-align: center;
    border: none;
    margin-bottom: 30px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f4f8ff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-sidebar h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-sidebar .nim-text {
    color: #8898aa;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.profile-sidebar .status-badge {
    background: rgba(255, 122, 0, 0.1);
    color: #ff7a00;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
}

.profile-info-list {
    text-align: left;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f4f8ff;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.profile-info-item strong {
    color: #3c4049;
}

.profile-info-item span {
    color: #8898aa;
}

/* Page Headers */
.portal-page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f9;
}

.portal-page-header h3 {
    font-weight: 700;
    color: #112344;
}

.portal-page-header p {
    color: #8898aa;
    margin-bottom: 0;
}

/* Admin Specific Navigation */
.admin-navbar {
    background-color: #112344 !important;
}
.admin-navbar .nav-link {
    color: rgba(255,255,255,0.7) !important;
}
.admin-navbar .nav-link:hover, .admin-navbar .nav-link.active {
    color: #ffffff !important;
}

/* ==========================================================================
   Front Page (index.php) Custom Spacing & Typography Tightening Overrides
   ========================================================================== */

/* Tighten global sections layout */
.section {
    padding: 45px 0 !important; /* Balanced vertical spacing */
}

/* Tighten section headings with LARGER font size */
.section-title {
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
}

.section-title h2 {
    font-size: 34px !important; /* Made larger for better readability */
    font-weight: 800 !important;
    letter-spacing: -0.8px !important;
    margin-bottom: 8px !important;
    color: #112344 !important;
}

.section-title p {
    font-size: 15.5px !important; /* Made larger and clearer */
    color: #7d8d9d !important;
    margin-bottom: 0 !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sharp and tighter Typography */
body {
    line-height: 1.55 !important;
    font-size: 15px !important; /* Standardized larger body text */
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
}

/* Hero Section Tightening & Larger Fonts */
.hero {
    padding: 65px 0 45px 0 !important;
    min-height: auto !important;
}

.hero h1 {
    font-size: 46px !important; /* Larger impact heading */
    line-height: 1.15 !important;
    margin-bottom: 15px !important;
    font-weight: 800 !important;
}

.hero-description {
    font-size: 16.5px !important; /* Larger readable description */
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    color: #4a4e57 !important;
}

.hero-stats {
    margin-bottom: 20px !important;
    gap: 25px !important;
}

.hero-stats .stat-item {
    padding: 5px 12px !important;
}

.hero-stats h3 {
    font-size: 28px !important; /* Larger stat numbers */
    margin-bottom: 3px !important;
}

.hero-stats p {
    font-size: 13px !important;
    margin-bottom: 0 !important;
}

.emergency-contact {
    margin-top: 20px !important;
}

.emergency-info strong {
    font-size: 16px !important;
}

/* Announcements & UKM Cards Spacing & Font Enlargement */
.specialty-card {
    padding: 22px !important;
    margin-bottom: 0 !important;
}

.specialty-card h3 {
    font-size: 20px !important; /* Larger titles inside announcements */
}

.specialty-card p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.card {
    margin-bottom: 0 !important;
}

.card-body {
    padding: 1.25rem !important;
}

.card-body h5 {
    font-size: 18.5px !important; /* Larger UKM/Event titles */
}

.card-body p {
    font-size: 14px !important; /* Larger card descriptions */
    margin-bottom: 1.1rem !important;
    line-height: 1.55 !important;
}

/* Modal details spacing alignment and font sizes */
.modal-body p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin-bottom: 1.2rem !important;
}

.modal-body h4 {
    font-size: 22px !important;
    margin-bottom: 0.6rem !important;
}

/* Spacing between grid elements */
.g-4, .gy-4 {
    --bs-gutter-y: 1.5rem !important;
    --bs-gutter-x: 1.5rem !important;
}

/* Dropdown Menu Link Visibility Fix (Logout, Profile, etc.) */
.navmenu .dropdown ul a, 
.navmenu .dropdown ul a span,
.navmenu .dropdown ul a i {
    color: #3c4049 !important;
}

.navmenu .dropdown ul a:hover, 
.navmenu .dropdown ul a:hover span,
.navmenu .dropdown ul a:hover i {
    color: var(--accent-color) !important;
    background-color: transparent !important;
}


