.jumbotron {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    color: white;
    border-radius: 1rem;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.btn-login {
    background-color: #4CAF50;
    border: none;
    padding: 15px 30px;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.125); 
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.card:hover {
    transform: translateY(-5px);
}

.alert-warning.special-alert {
    background-color: #fef5e7;
    border-color: #f9e79f;
    color: #7d6608;
}

.special-alert .alert-heading {
    color: #b7950b;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: white;
    text-decoration: none;
}


.error-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.error-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.error-icon {
    max-width: 200px;
    margin: 0 auto 2rem;
}

.error-code {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.error-message {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

#dynamicChart {
    width: 100% !important;
    height: 100% !important;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

:root {
    --uvaq-primary: #2c3e50;
    --uvaq-secondary: #27ae60;
}

.animate__fadeIn {
    animation-duration: 0.5s;
}

.contact-chip {
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.bi {
    margin-bottom: 1px;
}

.bi-arrow-repeat {
    animation: rotate 1.5s linear infinite;
    transition: transform 0.6s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bg-warning-light {
    background-color: rgba(255, 167, 38, 0.1);
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.text-warning-dark {
    color: #e65100;
}

.g-4 {
    row-gap: 2rem !important;
}

.btn.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}


.legal-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.legal-content h2 {
    color: #2c3e50;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 2rem;
}

.chart-container {
    position: relative;
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.chart-canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    margin: auto;
}   

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075)!important;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.view-toggle.active {
    background-color: var(--bs-primary);
    color: white !important;
}

.table-hover tbody tr {
    cursor: pointer;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}


.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.3;
}

.card-header {
    border-bottom: none;
    border-radius: 15px 15px 0 0 !important;
}

.card-header:hover {
    background: linear-gradient(45deg, #0069d9, #005cbf);
}

.badge i {
    transition: transform 0.3s ease;
}

.badge:hover i {
    transform: rotate(15deg) scale(1.2);
    animation: shake 0.5s ease;
}

.badge:hover .bi-arrow-repeat {
    transform: rotate(360deg);
}

.progress-container {
    width: 90%;
    margin: 1rem auto;
    position: relative;
}

.custom-progress-lg {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(233, 236, 239, 0.8);
    border-radius: 15px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #fff;
}

.custom-progress-lg::-webkit-progress-value {
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.4) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0.4) 75%,
        transparent 75%
    );
    background-size: 30px 30px;
    border-radius: 13px;
    animation: progress-stripes 0.8s linear infinite;
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 0 15px currentColor;
}

.custom-progress-lg.status-new::-webkit-progress-value {
    background-color: #00b4ff; 
}

.custom-progress-lg.status-in_progress::-webkit-progress-value {
    background-color: #ffd700;
}

.custom-progress-lg.status-resolved::-webkit-progress-value {
    background-color: #00ff88;
}

.custom-progress-lg.status-rejected::-webkit-progress-value {
    background-color: #ff2a2a;
}

.progress-percent {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #333;
    white-space: nowrap;
}

.badge-hover:hover i {
    animation: shake 0.5s ease;
}

.hover-lift {
    transition: all 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes progress-stripes {
    from { background-position: 0 0; }
    to { background-position: 60px 0; }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.custom-progress-lg:hover::-webkit-progress-value {
    filter: hue-rotate(-10deg) brightness(1.15);
    transform: scaleX(1.05);
    box-shadow: 
        inset 0 2px 4px rgba(255,255,255,0.5),
        0 0 25px currentColor;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    margin-right: 1rem;
    max-width: 100%;
}

.legend-text {
    flex: 1;
    line-height: 1.3;
    white-space: nowrap;
}

/* Responsive font sizes */
@media (max-width: 767px) {
    .legend-item {
        font-size: 0.75rem;
        margin-right: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .legend-item {
        font-size: 0.85rem;
        margin-right: 1.25rem;
    }
}

.star-rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    font-size: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-rating i {
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.star-rating.small i {
    font-size: 1rem;
}

.card:hover .star-rating i {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .btn-cancel,
    .btn-primary {
        width: 100%;
    }

    .chart-container {
        height: 180px!important;
    }
    
    .card-title {
        font-size: 0.9rem;
    }

    .card {
        min-height: auto;
    }
    
    .table td, .table th {
        font-size: 0.875rem;
    }
}

@media (min-width: 1200px) {
    .row-cols-xl-2 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 95%;
    }
}