/* style.css - Custom styles for the college admissions admin panel */

/* Define CSS variables for the color scheme */
:root {
    --primary-blue: #007bff; /* A standard shiny blue for primary elements */
    --light-blue: #e0f2ff;   /* A very light blue for backgrounds/accents */
    --dark-blue: #0056b3;    /* Darker blue for hover states */
    --white: #ffffff;
    --light-gray: #f8f9fa;  /* Light gray for general backgrounds */
    --text-color: #343a40;   /* Dark gray for most text */
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-orange: #ffc107;
}

body {
    font-family: 'Inter', sans-serif; /* Use Inter font as requested */
    background-color: var(--light-gray);
    color: var(--text-color);
}

/* Navbar styling */
.navbar {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.navbar-brand, .nav-link {
    color: var(--white) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--light-blue) !important;
}

/* Sidebar styling */
.sidebar {
    /* Enhanced subtle blue gradient for a professional background */
    background: linear-gradient(135deg, #f0f8ff 0%, #dbe9ff 100%); /* Lighter, more refined blue-to-white gradient */
    padding-top: 30px; /* Increased padding */
    height: 100vh; /* Full height sidebar */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1); /* Stronger, more diffused shadow */
    border-top-right-radius: 15px; /* More pronounced rounded corners */
    border-bottom-right-radius: 15px; /* More pronounced rounded corners */
    position: sticky; /* Keep sidebar in place during scroll */
    top: 0;
    left: 0;
    overflow-y: auto; /* Enable scrolling for long content */
    z-index: 100; /* Ensure it's above other content if necessary */
    border-right: none; /* Remove default border from Bootstrap's border-end class */
}

.sidebar .sidebar-heading {
    color: var(--primary-blue); /* Heading text color */
    font-size: 1.6rem !important; /* Larger font size for heading */
    padding-bottom: 25px !important; /* More space below heading */
    margin-bottom: 20px; /* Space before menu items */
    border-bottom: 1px solid rgba(0, 123, 255, 0.1); /* Lighter border */
}

.sidebar .list-group-flush {
    padding-right: 15px; /* Padding for the entire list group */
}

.sidebar .nav-link {
    color: var(--text-color);
    padding: 12px 20px; /* Increased padding for links */
    margin-bottom: 8px; /* More space between links */
    border-radius: 10px; /* More rounded corners for nav items */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Added transform for hover */
    display: flex; /* Flexbox for icon alignment */
    align-items: center; /* Vertically align icon and text */
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 12px; /* Space between icon and text */
    font-size: 1.1rem; /* Slightly larger icons */
}

.sidebar .nav-link:hover {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    transform: translateX(5px); /* Slide effect on hover */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.1); /* Subtle shadow on hover */
}

.sidebar .nav-link.active {
    background-color: var(--primary-blue); /* Solid blue for active */
    color: var(--white) !important; /* White text for active */
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* More prominent shadow for active */
    transform: translateX(0); /* Ensure no slide for active */
}

/* Main content area */
.main-content {
    padding: 20px;
    background-color: var(--light-gray);
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px; /* More rounded corners for cards */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px); /* Subtle lift effect on hover */
}

.card-header {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 15px;
}

.card-body {
    padding: 20px;
}

/* Table styling */
.table {
    border-collapse: separate;
    border-spacing: 0 8px; /* Space between rows */
}

.table thead th {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    font-weight: 600;
}

.table tbody tr {
    background-color: var(--white);
    border-radius: 8px; /* Rounded corners for table rows */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--light-blue);
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border: none;
}

/* Button styling */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
    border-radius: 8px;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: var(--danger-red);
    border-color: var(--danger-red);
    border-radius: 8px;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-info {
    background-color: #17a2b8; /* Bootstrap info blue */
    border-color: #17a2b8;
    border-radius: 8px;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* Form control styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Custom badges for status */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 15px;
    font-weight: 600;
}

.badge-pending {
    background-color: var(--warning-orange);
    color: var(--white);
}

.badge-approved {
    background-color: var(--success-green);
    color: var(--white);
}

.badge-rejected {
    background-color: var(--danger-red);
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        padding-bottom: 15px;
        z-index: 1000;
        border-radius: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .main-content {
        margin-top: 100px; /* Adjust for fixed sidebar on small screens */
    }
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Gradient backgrounds for cards - Enhanced Colors */
.bg-gradient-primary-to-light {
    background: linear-gradient(45deg, #007bff, #b3e0ff); /* Brighter light blue */
}
.bg-gradient-warning-to-light {
    background: linear-gradient(45deg, #ffc107, #ffe59c); /* Brighter light orange */
}
.bg-gradient-success-to-light {
    background: linear-gradient(45deg, #28a745, #9be3af); /* Brighter light green */
}
.bg-gradient-danger-to-light {
    background: linear-gradient(45deg, #dc3545, #f5b1b7); /* Brighter light red */
}

/* Hover effect for cards */
.card-hover-effect {
    transition: all 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Styling for the circular icon background in dashboard cards */
.card-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Adjust icon size within circle */
}

/* Table row styling to create spacing */
.table tbody tr {
    margin-bottom: 10px; /* Add space between rows */
    display: table-row; /* Ensure display is table-row for proper spacing */
}
.table tbody tr:first-child {
    margin-top: 0;
}
.table tbody td {
    padding-top: 15px; /* Adjust padding for spaced rows */
    padding-bottom: 15px;
    border-top: none; /* Remove default top border for spaced rows */
}
