/* Custom Styles for URL Navigator */

/* Global Box Sizing */
* {
    box-sizing: border-box;
}

/* Modern Color Palette */
:root {
    --primary-color: #2563eb; /* Modern blue */
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --accent-color: #8b5cf6;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --bg-gradient: linear-gradient(rgba(37, 99, 235, 0.4), rgba(139, 92, 246, 0.3));
}

/* General Body Styles */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    /* Beautiful mountain background with transparency overlay */
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.4), rgba(139, 92, 246, 0.3)),
        url('../images/mountain-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    /* Flex layout for sticky footer */
    display: flex;
    flex-direction: column;
}

/* Mobile responsive styles - Clean approach for better performance */
@media (max-width: 768px) {
    /* Ensure proper scrolling on mobile */
    html, body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    /* Fix background on mobile */
    body {
        background-attachment: scroll;
        background-position: center top;
    }
    
    /* Main content container */
    main {
        padding: 1rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        height: auto;
        min-height: auto;
    }
    
    /* Ensure containers are responsive */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Adjust cards for mobile */
    .card {
        margin-bottom: 1.5rem;
        height: auto;
        max-width: 100%;
    }
    
    /* Adjust jumbotron for mobile */
    .jumbotron {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 0;
    }
    
    /* Adjust footer */
    footer {
        position: static;
        margin-top: 2rem;
    }
    
    /* Ensure rows and columns work correctly on mobile */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Make all columns full width on mobile */
    .row > [class^="col-"] {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Ensure all interactive elements are clickable on mobile */
    a, button, input, select, textarea {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix navbar on mobile */
    .navbar {
        position: relative;
    }
    
    .navbar-collapse {
        overflow: visible;
    }
    
    /* Fix dropdown menus on mobile */
    .dropdown-menu {
        position: static;
        width: 100%;
        z-index: 1002;
    }
    
    /* Mobile-specific jumbotron */
    .jumbotron h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .jumbotron p {
        font-size: 1rem;
    }
    
    /* Mobile-specific category headers */
    .category-header {
        font-size: 1.5rem;
        padding-left: 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile-specific card styling */
    .card {
        margin-left: 0;
        margin-right: 0;
        box-shadow: var(--shadow-md);
    }
    
    /* Ensure card buttons are easily tappable */
    .card .favorite-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Hide card footer on mobile to save space */
    .card-footer {
        display: none;
    }
}

/* Tablet responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Adjust container padding */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* 2 columns on tablets */
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Adjust jumbotron */
    .jumbotron {
        padding: 2.5rem 2rem;
    }
    
    .jumbotron h1 {
        font-size: 2.5rem;
    }
    
    /* Adjust cards */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Desktop responsive styles */
@media (min-width: 1025px) and (max-width: 1440px) {
    /* 3 columns on medium desktops */
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Adjust container max-width */
    .container {
        max-width: 1200px;
    }
}

/* Large desktop responsive styles */
@media (min-width: 1441px) {
    /* 4 columns on large desktops */
    .col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Adjust container max-width */
    .container {
        max-width: 1400px;
    }
    
    /* Enhanced jumbotron for large screens */
    .jumbotron {
        padding: 3rem 3rem;
    }
    
    .jumbotron h1 {
        font-size: 3.5rem;
    }
}

/* Main Content Container */
main {
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 2rem;
    overflow: visible;
    height: auto;
    min-height: auto;
    flex-grow: 1;
}



/* Category Sections Container */
.category-sections-container {
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Category Sections */
.category-section {
    margin-bottom: 2.5rem !important;
}

/* Category Headers */
.category-header {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color)) 1;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(139, 92, 246, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
}

.card-disabled {
    opacity: 0.6;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
}

.card-disabled .card-title span {
    color: var(--text-light);
    text-decoration: line-through;
}

.card-disabled:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

/* Favorited Card Styles */
.card-favorited {
    background-color: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.card-favorited:hover {
    background-color: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.4);
}

/* Favorite Button Styles */
.favorite-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.favorite-btn i {
    font-size: 0.875rem;
}

/* Responsive Design Improvements */
@media (max-width: 991px) {
    /* Fix navbar display on medium screens */
    .navbar-nav {
        flex-direction: column;
    }
    
    /* Fix dropdown positioning on medium screens */
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
    }
}

@media (max-width: 576px) {
    /* Optimize navbar for small mobile screens */
    .navbar {
        padding: 0.5rem 0.75rem !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    /* Optimize login form for small mobile screens */
    .col-md-8.col-lg-6.col-sm-10 {
        padding: 0 1rem;
    }
}

/* Login Page Styles */
.container.py-5 {
    /* Increase top padding to move login module down */
    padding-top: 8rem;
    padding-bottom: 4rem;
}

/* Login Page Styles */
/* Override base.html main container styles for login page */
body.login-page main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Login page body class */
body.login-page {
    background-color: #f0f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Login Page Main Container */
.login-page-container {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Background Pattern */
.login-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 0;
}

/* Brand Section - Left Side */
.login-brand-section {
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Brand Section Background */
.login-brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -1;
}

/* Brand Content */
.login-brand-content {
    max-width: 500px;
}

/* Company Name */
.login-company-name {
    margin-bottom: 2rem;
}

.login-company-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

/* System Title */
.login-system-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* System Description */
.login-system-description {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Values Section */
.login-values-section {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-value-item {
    flex: 1;
    text-align: left;
}

.login-value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-value-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Form Section - Right Side */
.login-form-section {
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Form Container */
.login-form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    padding: 2.5rem;
}

/* Form Title */
.login-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Group */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

/* Input Group */
.login-form .input-group {
    position: relative;
}

.login-form .input-group-prepend {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-right: none;
}

.login-form .input-group-text {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.75rem 1rem;
}

/* Form Control */
.login-form .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1rem;
    transition: var(--transition);
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Submit Button */
.login-submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    transition: var(--transition);
    margin-top: 1rem;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Stack sections on tablet */
    .login-page-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .login-brand-section,
    .login-form-section {
        width: 100%;
        height: auto;
    }
    
    .login-brand-section {
        padding: 2rem;
    }
    
    .login-values-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile responsive */
    .login-brand-section {
        padding: 1.5rem;
    }
    
    .login-system-title {
        font-size: 2.5rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
    
    .login-values-section {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Login card styling - only for login page */
.login-card .card-header {
    /* Increase header padding for better proportion */
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(26, 64, 175, 0.9));
}

.login-card .card-header h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-card .card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-card .card-body {
    /* Increase body padding for better proportion */
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 11;
}

/* Form element styling for better proportions - only for login page */
.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card .form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-card .form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.login-card .btn-primary {
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    transition: var(--transition);
}

.login-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.card form {
    position: relative;
    z-index: 12;
}

/* Ensure all form elements are clickable */
.form-control,
.btn {
    position: relative;
    z-index: 13;
    pointer-events: auto;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-body {
    flex-grow: 1;
    padding: 1.5rem;
    position: relative;
}

.card-title {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Make the disabled badge look good in the flex layout */
.badge-danger {
    margin-left: 0.75rem;
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #475569);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #475569, #334155);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(26, 64, 175, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
    border-bottom: none;
    position: relative;
    z-index: 1001;
    width: 100%;
    overflow: visible;
}

/* Ensure navbar-collapse displays correctly */
.navbar-collapse {
    overflow: visible;
}

/* Ensure navbar-nav displays horizontally on larger screens */
.navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Fix dropdown positioning */
.dropdown {
    position: relative;
}

/* Ensure dropdown menu displays correctly */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1002;
    float: left;
    min-width: 10rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition);
    font-weight: 500;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}
/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-top: 0.5rem !important;
    position: absolute;
    z-index: 1002;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Table Styles */
.table {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.table thead th {
    background-color: #f1f5f9;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
    padding: 1rem;
    text-align: left;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-muted {
    background-color: #f1f5f9;
    opacity: 0.8;
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1.5rem 0;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-color);
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* Additional responsive styles - merged into main media queries above */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

