body {
    background-color: #f8f9fa;
}

.jumbotron {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.card {
    border: none;
    border-radius: 15px;
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand .logo-img {
    height: 32px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.logo-hero {
    height: 60px;
    width: auto;
    margin-right: 12px;
    vertical-align: middle;
}

.navbar-brand i {
    margin-right: 8px;
}

.btn {
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invalid-feedback {
    font-size: 0.875rem;
}

.alert {
    border-radius: 10px;
    border: none;
}

.text-danger {
    color: #dc3545 !important;
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .jumbotron {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .jumbotron .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .ms-2 {
        margin-left: 0 !important;
    }
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
}

footer {
    margin-top: auto;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

[data-theme="dark"] {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .navbar {
    background-color: #2d3748 !important;
}

[data-theme="dark"] .card {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .card-header {
    background-color: #4a5568 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .bg-light {
    background-color: #2d3748 !important;
}

[data-theme="dark"] .bg-primary {
    background-color: #3182ce !important;
}

[data-theme="dark"] .text-muted {
    color: #a0aec0 !important;
}

[data-theme="dark"] .list-group-item {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .btn-outline-secondary {
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #4a5568 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .form-control {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .form-control:focus {
    background-color: #2d3748 !important;
    border-color: #3182ce !important;
    color: #e0e0e0 !important;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25) !important;
}

[data-theme="dark"] .table {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .badge {
    color: #1a1a1a !important;
}

[data-theme="dark"] .alert {
    border-color: #4a5568 !important;
}

[data-theme="dark"] .alert-success {
    background-color: rgba(72, 187, 120, 0.1) !important;
    color: #68d391 !important;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(245, 101, 101, 0.1) !important;
    color: #fc8181 !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(66, 153, 225, 0.1) !important;
    color: #63b3ed !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#theme-toggle #theme-icon,
#theme-toggle i,
button#theme-toggle i {
    animation: spin 2s linear infinite !important;
    display: inline-block !important;
    transform-origin: center !important;
}

#theme-toggle .fa-moon {
    color: #ffeb3b !important;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.7), 0 0 16px rgba(255, 235, 59, 0.5), 0 0 24px rgba(255, 235, 59, 0.3) !important;
    filter: drop-shadow(0 0 6px rgba(255, 235, 59, 0.8)) !important;
}

#theme-toggle .fa-sun {
    color: #ffeb3b !important;
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.7), 0 0 16px rgba(255, 235, 59, 0.5), 0 0 24px rgba(255, 235, 59, 0.3) !important;
    filter: drop-shadow(0 0 6px rgba(255, 235, 59, 0.8)) !important;
}

@media (max-width: 768px) {
    .jumbotron {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .jumbotron .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .ms-2 {
        margin-left: 0 !important;
    }
    
    #theme-toggle {
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .navbar-nav .nav-item {
        text-align: center !important;
    }
    
    #theme-toggle #theme-icon,
    #theme-toggle i,
    button#theme-toggle i {
        animation: spin 2s linear infinite !important;
        display: inline-block !important;
        transform-origin: center center !important;
    }
}
