/* ========================================================================= */
/* --- GLOBAL CARD STYLES --- */
/* ========================================================================= */

.card {
    border: none;
    border-radius: 15px;
    /* Standardized radius */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft default shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Specific Card Modifiers (Only differences) */
.stat-card {
    border-radius: 10px;
    border-left: 5px solid;
    /* Inherits hover from .card */
}

.filter-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.card-bono {
    border-radius: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-bono:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cv-viewer-card {
    top: 20px;
}

/* ========================================================================= */
/* --- BUTTONS & BADGES --- */
/* ========================================================================= */

.btn-modern,
.btn-action {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-modern:hover,
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-purchase {
    background-image: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 1rem;
    width: 100%;
    transition: opacity 0.2s;
}

.btn-purchase:hover {
    opacity: 0.9;
    color: white;
}

.badge-modern {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* ========================================================================= */
/* --- UTILITIES & TABLES --- */
/* ========================================================================= */

.table-modern {
    border-radius: 12px;
    overflow: hidden;
}

.table-modern thead {
    background: var(--primary-gradient);
    color: white;
}

.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

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

.empty-state {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 3rem;
}

.icon-circle,
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.icon-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.logo {
    max-width: 150px;
    height: auto;
}

.editable-item:hover {
    cursor: pointer;
    background-color: #f1f5f9;
}

/* Colors & Gradients */
.bg-gradient-primary {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
}

.bg-gradient-success {
    background: linear-gradient(45deg, #1cc88a, #13855c);
    color: white;
}

.bg-gradient-info {
    background: linear-gradient(45deg, #36b9cc, #258391);
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #f6c23e, #dda20a);
    color: white;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-hover-transform: translateY(-10px);
    --transition-speed: 0.3s;
}

.hero-section {
    background-image: var(--primary-gradient);
    color: white;
    padding: 4rem 1rem;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Bono Specifics */
.card-header-bono {
    background: #fff;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.bono-price {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.bono-currency {
    font-size: 1.5rem;
    vertical-align: super;
    color: #6b7280;
}

.bono-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.badge-discount {
    background-color: #e0f2fe;
    color: #0284c7;
}

.badge-shipping {
    background-color: #dcfce7;
    color: #16a34a;
}

.badge-credit {
    background-color: #fef9c3;
    color: #ca8a04;
}

.badge-default {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #764ba2;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

[x-cloak] {
    display: none !important;
}

/* UI Autocomplete & Tags */
.ui-autocomplete {
    z-index: 1060 !important;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-menu-item {
    font-size: 0.95rem;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
}

.ui-state-active {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    min-height: 50px;
    background-color: #fff;
    margin-bottom: 10px;
}

.tags-container:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-item .remove-tag {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.tag-item .remove-tag:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 150px;
    padding: 6px;
    font-size: 0.95rem;
}

.tag-tool {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tag-language {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cv-viewer-body {
    height: 80vh;
    padding-bottom: 20px !important;
}

.cv-viewer-body iframe {
    min-height: 500px;
}

/* Badges Colors Override */
.badge {
    font-size: 0.8em;
    padding: 0.5em 0.8em;
}

.bg-info-subtle {
    background-color: #e0f7fa !important;
}

.text-info {
    color: #00bcd4 !important;
}

.bg-warning-subtle {
    background-color: #fff3e0 !important;
}

.text-warning {
    color: #ff9800 !important;
}

.bg-danger-subtle {
    background-color: #fce4ec !important;
}

.text-danger {
    color: #e91e63 !important;
}

.bg-primary-subtle {
    background-color: #e3f2fd !important;
}

.text-primary {
    color: #2196f3 !important;
}

.bg-secondary-subtle {
    background-color: #f5f5f5 !important;
}

.text-secondary {
    color: #607d8b !important;
}

/* Navbar */
.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--bs-primary);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.dropdown-item {
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    color: var(--bs-primary);
}

.icon-hover-effect {
    transition: all 0.2s ease-in-out;
}

.icon-hover-effect:hover {
    transform: scale(1.1);
    color: #0d6efd !important;
}

/* ========================================================================= */
/* --- WIDGET CHATBOT --- */
/* ========================================================================= */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chat-window {
    width: 100%;
    max-width: 380px;
    height: 500px;
    max-height: 80vh;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    background-color: #ffffff;
}

.chat-header {
    background-color: #4f46e5;
    color: white;
    padding: 1rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-main {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f7f7f7;
}

.bot-message-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.bot-message {
    background-color: #e0f2fe;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-bottom-left-radius: 0.25rem;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-message-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.user-message {
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-bottom-right-radius: 0.25rem;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.source-link {
    font-size: 0.75rem;
    color: #4f46e5;
    display: block;
    margin-top: 0.5rem;
}

.loading-bubble {
    background-color: #f3f4f6;
    display: inline-block;
}

.dot-flashing {
    position: relative;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #9ca3af;
    color: #9ca3af;
    animation: dot-flashing 1s infinite linear alternate;
    animation-delay: 0s;
}

.dot-flashing::before,
.dot-flashing::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #9ca3af;
    color: #9ca3af;
    animation: dot-flashing 1s infinite linear alternate;
}

.dot-flashing::before {
    left: -10px;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 10px;
    animation-delay: 0.5s;
}

@keyframes dot-flashing {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}