/* 
    File: public/css/style.css 
    Theme: Foxhog Ventures Alumni Portal
*/

:root {
    --brand-primary: #a61b38;
    --brand-dark: #5e0b1d;
    --brand-accent: #c61c39; /* The bright red triangle color */
    --brand-gradient: linear-gradient(135deg, #a61b38 0%, #5e0b1d 100%);
    --input-bg: #eff3f8;
    --input-border: #e1e5eb;
    --text-muted: #8893a0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* --- COMMON COMPONENTS --- */

/* 1. Custom Buttons */
.btn-brand {
    background-color: #d11e3b;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background-color: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 2. Custom Input Fields (The Light Blue Design) */
.custom-input-group .input-group-text {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-right: none;
    color: var(--text-muted);
}

.custom-input-group .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-left: none;
    padding-left: 0;
    font-size: 0.95rem;
    box-shadow: none;
    height: 45px; /* Consistent height */
}

.custom-input-group .form-control:focus {
    background-color: #ffffff;
    border-color: var(--brand-accent);
    box-shadow: none;
}

.custom-input-group:focus-within .input-group-text {
    background-color: #ffffff;
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* 3. Navigation Bar (For Dashboard pages) */
.navbar-brand-custom {
    background: var(--brand-gradient) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- AUTH PAGE SPECIFICS (Login & Register) --- */

.auth-body {
    background-color: #fff;
    height: 100vh;
}

/* Left Panel (Maroon Background) */
.brand-panel {
    background: var(--brand-gradient);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Decorative Circles */
.circle-top {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 50vw;
    height: 50vw;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.circle-bottom {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Logo Box */
.logo-box {
    background: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 25px;
}

.logo-text {
    color: #000;
    font-weight: 800;
    font-size: 28px;
    margin: 0;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--brand-accent);
}

/* Right Panel (Form Container) */
.login-form-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    margin: auto; 
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .brand-panel {
        min-height: 250px; /* Smaller header for mobile */
        padding: 40px 0;
    }
    .auth-body {
        height: auto;
    }
    .circle-top, .circle-bottom {
        display: none; /* Hide circles on mobile to save performance */
    }
}

/* --- DASHBOARD STYLES --- */

/* Page Header */
.page-title {
    font-weight: 800;
    color: var(--brand-dark);
    border-left: 5px solid var(--brand-accent);
    padding-left: 15px;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 5px solid var(--brand-primary); /* Maroon Accent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0;
    line-height: 1;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 0;
}

.stat-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    color: var(--brand-primary);
    opacity: 0.08; /* Subtle watermark effect */
}

/* Status Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.bg-status-pending { background-color: #fff3cd; color: #856404; }
.bg-status-approved { background-color: #d4edda; color: #155724; }
.bg-status-rejected { background-color: #f8d7da; color: #721c24; }

/* Custom Table */
.table-custom thead th {
    background-color: var(--input-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid var(--input-border);
    padding: 15px;
}
.table-custom tbody td {
    vertical-align: middle;
    padding: 15px;
    font-size: 0.95rem;
}
.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}
/* --- MODERN DASHBOARD LAYOUT --- */

/* Wrapper to hold Sidebar and Content */
.d-flex-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
    background-color: #f4f6f9; /* Light grey background for content */
}

/* 1. LEFT SIDEBAR */
#sidebar-wrapper {
    min-width: 260px;
    max-width: 260px;
    background: var(--brand-gradient); /* Foxhog Maroon */
    color: #fff;
    transition: all 0.3s;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-heading {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    letter-spacing: 1px;
}

.list-group-item {
    background-color: transparent;
    color: rgba(255,255,255,0.8);
    border: none;
    padding: 15px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.list-group-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: rgba(255,255,255,0.5);
}

.list-group-item.active {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border-left-color: var(--brand-accent); /* Bright Red Accent */
    font-weight: 700;
}

.list-group-item i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* 2. TOP NAVBAR (Right Side) */
#page-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Notification Bell */
.notification-icon {
    position: relative;
    cursor: pointer;
    color: #8893a0;
    font-size: 1.2rem;
    transition: color 0.3s;
    margin-right: 25px;
}
.notification-icon:hover { color: var(--brand-primary); }

.badge-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--brand-accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* User Profile Dropdown */
.profile-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.profile-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--brand-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}
.profile-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}
.profile-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Main Content Area */
.dashboard-content {
    padding: 30px;
}
/* --- TOPBAR DROPDOWN FIXES --- */

/* Remove default Bootstrap arrow from the Profile toggle if we added our own */
.dropdown-toggle.no-arrow::after {
    display: none;
}

/* Ensure icons have pointers */
.notification-icon, #userDropdown, #notifyDropdown {
    cursor: pointer;
}

/* Fix Notification Badge Positioning */
.badge-counter {
    top: 5px;
    right: 5px;
}

/* Make Dropdowns pop nicely */
.dropdown-menu {
    border-radius: 8px;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.line-height-sm {
    line-height: 1.2;
}

/* --- ALUMNI DIRECTORY CARDS --- */
.directory-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}
.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.directory-header {
    height: 70px;
    background: var(--brand-gradient); /* Foxhog Maroon */
}
.directory-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -40px;
    background-color: var(--input-bg);
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-primary);
}
.skill-badge {
    background-color: #eff3f8;
    color: var(--brand-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 2px;
    display: inline-block;
}