@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Base Settings */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Material Symbols Settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.selected .material-symbols-outlined,
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

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

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: transparent;
}

textarea::-webkit-scrollbar-thumb {
    background-color: #e6e0db;
    border-radius: 20px;
}

/* Input Number Spinners Removal */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Custom Tooltip Styling (from Competitive Landscape) */
.tooltip-trigger:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
}

.tooltip-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) translateX(-50%);
    transition: all 0.2s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.animate-shake {
    animation: shake 0.3s ease-in-out;
}

.step-content {
    display: none !important;
}

.step-content.active {
    display: flex !important;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Recommendations Component */
.recommendations-box {
    border: 1px solid #dbeafe;
    /* blue-100 */
    background-color: rgba(239, 246, 255, 0.5);
    /* blue-50/50 */
    border-radius: 0.75rem;
    /* rounded-xl */
    overflow: hidden;
    transition: all 0.3s;
}

.dark .recommendations-box {
    background-color: rgba(30, 58, 138, 0.1);
    /* blue-900/10 */
    border-color: rgba(30, 58, 138, 0.3);
    /* blue-900/30 */
}

.recommendations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.recommendations-header:hover {
    background-color: rgba(219, 234, 254, 0.5);
    /* blue-100/50 */
}

.dark .recommendations-header:hover {
    background-color: rgba(30, 58, 138, 0.2);
    /* blue-900/20 */
}

.recommendations-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding-left: 1rem;
    padding-right: 1rem;
}

.recommendations-content.open {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* Chip Styles */
.chip-option {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e6e0db;
    background-color: white;
    color: #64748b;
    /* steel */
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dark .chip-option {
    border-color: #4a3b32;
    background-color: #2e231b;
}

.chip-option:hover {
    border-color: #f9862f;
    /* primary */
    color: #f9862f;
}

.chip-option.selected {
    background-color: #f9862f;
    /* primary */
    color: white;
    border-color: #f9862f;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Repeater Styles */
.repeater-item {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    background-color: #f8f7f5;
    /* background-light */
    border: 1px solid #e6e0db;
    margin-bottom: 0.75rem;
}

.dark .repeater-item {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: #4a3b32;
}

.repeater-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.repeater-remove:hover {
    color: #ef4444;
    /* red-500 */
}

/* Error Messages */
.error-message {
    animation: fadeIn 0.3s ease-out;
}

/* Notification Styles */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark Mode Icon Transition */
.dark-mode-icon {
    transition: transform 0.3s ease;
}

#dark-mode-toggle:hover .dark-mode-icon {
    transform: rotate(15deg);
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}