/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 56px;
}

.container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    font-weight: 600;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Dashboard Styles */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 20px 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #212529;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin: 0.25rem 1rem;
}

.sidebar .nav-link:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: #0d6efd;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Table Styles */
.table-responsive {
    margin-bottom: 2rem;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    .sidebar-sticky {
        height: auto;
    }
}

/* Admin Sidebar Styles */
#sidebar {
    min-height: 100vh;
    background: #212529;
    transition: all 0.3s;
}

#sidebar .nav-link {
    color: #adb5bd;
    border-left: 3px solid transparent;
    padding: 0.75rem 1.5rem;
}

#sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #0d6efd;
}

#sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #0d6efd;
}

#sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content Adjustment */
main {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 250px;
    transition: all 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    main {
        margin-left: 0;
    }
    
    #sidebar {
        margin-left: -250px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
}


/* Card Hover Effect */
.hover-transform {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.hover-transform:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Primary Gradient Background */
.bg-primary-gradient {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

/* Soft Primary Background */
.bg-primary-soft {
    background-color: rgba(78, 115, 223, 0.1);
}

/* Card Styling */
.card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card-title a:hover {
    color: #224abe !important;
}

/* Stretched Link Overlay */
.card .stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Card Footer Button */
.card-footer .btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
}