/* Custom CSS for Sistem Pengurusan Sukan Sekolah */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Dashboard Cards */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

/* Table Styling */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #343a40;
    color: white;
    font-weight: normal;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff;
}

.sidebar .nav-link.active {
    color: #007bff;
    border-left: 3px solid #007bff;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #999;
}

.sidebar .nav-link.active .feather {
    color: inherit;
}

/* Form Styling */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Sport House Colors */
.house-DO {
    color: #ffc107 !important; /* Yellow/Gold */
}

.house-TDI {
    color: #dc3545 !important; /* Red */
}

.house-TR {
    color: #28a745 !important; /* Green */
}

.house-TH {
    color: #007bff !important; /* Blue */
}

.bg-house-DO {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.bg-house-TDI {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.bg-house-TR {
    background-color: #28a745 !important;
    color: #fff !important;
}

.bg-house-TH {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-logo {
    max-height: 100px;
    margin-bottom: 20px;
}

/* Profile Pictures */
.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Category Badges */
.category-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 0;
    }
    
    .sidebar-sticky {
        height: auto;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .profile-pic-large {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .no-print, .modal, .btn {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background-color: #fff;
    }
}

/* Admin Header */
.admin-header {
    background-color: #343a40;
    color: white;
}

/* Front-end specific styles */
.hero-section {
    background-color: #007bff;
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
}

.event-card {
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.results-table th {
    background-color: #343a40;
    color: white;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

