/*
 * ULS TechFest 2025 - Professional Redesign Stylesheet
 */

/* --- CSS Variables for Branding --- */
:root {
    --primary-color: #4a00e0;
    --secondary-color: #8e2de2;
    --accent-color: #ffdd57;
    --text-color: #333;
    --light-text-color: #fff;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
}

/* --- Base Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* --- Login Page Design --- */
.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* **FIX:** Replaced invalid PHP tag with a correct relative CSS path. */
    background: linear-gradient(rgba(74, 0, 224, 0.8), rgba(142, 45, 226, 0.8)), url('../images/flyer.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-box .logo {
    width: 120px;
    margin-bottom: 20px;
}
.login-box h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8em;
}
.login-box p {
    margin-bottom: 30px;
    color: #666;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 15px;
}
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: 500;
    width: 100%;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    transition: transform 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
}

/* --- Main Application Layout (Dashboard, etc.) --- */
.main-wrapper { 
    display: flex; 
    width: 100%; 
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}
.sidebar .logo { width: 80%; margin: 0 auto 30px auto; }
.sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar nav a {
    color: var(--light-text-color);
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s;
}
.sidebar nav a:hover, .sidebar nav a.active { background-color: rgba(255,255,255,0.2); }
.sidebar .logout { margin-top: auto; text-align: center; }

.main-content { 
    flex-grow: 1;
    padding: 30px; 
    overflow-y: auto;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
header h1 { margin: 0; font-size: 2em; color: var(--primary-color); }

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar {
        height: auto;
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
    .sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-content {
        padding: 20px;
    }
}

/* --- Dashboard Table Styles --- */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    /* **NEW:** Add a subtle shadow and rounded corners to the table container */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; /* Ensures the border-radius clips the table corners */
}

.dashboard-table th, .dashboard-table td {
    padding: 12px 15px;
    text-align: left;
    /* **EDIT:** Changed from just a bottom border to a full border for a grid effect */
    border: 1px solid #e0e0e0; 
}

.dashboard-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

/* **NEW:** Zebra-striping for better readability and a fancier look */
.dashboard-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* **NEW:** Hover effect for interactivity */
.dashboard-table tbody tr:hover {
    background-color: #f1f1f1;
}

.dashboard-table td:last-child {
    text-align: right;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--primary-color);
}
