:root {
    --corporate-blue: #0d47a1;
    --corporate-blue-dark: #002171;
    --corporate-blue-light: #5472d3;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    background-color: var(--bg-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: linear-gradient(135deg, var(--corporate-blue) 0%, var(--corporate-blue-dark) 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
}

.list-group-item {
    border: none;
    margin-bottom: 5px;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.list-group-item:hover {
    background-color: var(--corporate-blue-light);
    color: white !important;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--corporate-blue) !important;
    border-color: var(--corporate-blue) !important;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-primary {
    background: linear-gradient(135deg, var(--corporate-blue) 0%, var(--corporate-blue-dark) 100%);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.4);
    filter: brightness(1.1);
}

footer {
    margin-top: auto;
    background-color: #f1f3f5;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

h1,
h2,
h3 {
    color: var(--corporate-blue);
    font-weight: 700;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background-color: var(--corporate-blue);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

.required-label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Form Controls & Comboboxes Styling */
.form-control,
.form-select,
.bootstrap-select>.dropdown-toggle {
    border: 1px solid #adb5bd !important;
    border-radius: 8px;
    background-color: var(--white);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus,
.bootstrap-select>.dropdown-toggle:focus,
.bootstrap-select>.dropdown-toggle.show {
    border-color: var(--corporate-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25) !important;
    outline: 0;
}

.bonus-box {
    width: 65px;
    height: 45px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.2s;
}

.bonus-box:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    z-index: 1;
}

.bonus-number {
    font-weight: bold;
}

.bonus-sub {
    font-size: 0.6rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bonus-reserved {
    background-color: #fd7e14 !important;
    /* Naranja */
    color: #fff !important;
    border-color: #fd7e14;
}

.bonus-paid {
    background-color: #198754 !important;
    /* Verde Oscuro (Bootstrap Success) */
    color: #fff !important;
    border-color: #198754;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

.raffle-card {
    transition: transform 0.2s;
}

.raffle-card:hover {
    transform: translateY(-5px);
}

/* Modern vertical timeline styles */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 1.5rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -2.35rem;
    top: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef0f3;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.badge-timeline {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}