:root {
    --primary-color: #4a90e2;
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    min-height: 100vh;
}

.container-fluid {
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.row {
    height: 100%;
    margin: 0;
}

.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wheel-container {
    position: relative;
    width: min(80vh, 90%);
    height: min(80vh, 90%);
    aspect-ratio: 1;
    margin: auto;
}

.wheel-pointer {
    position: absolute;
    /* top: 5px; */
    left: 50%;
    transform: translate(-50%, 0);
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, #ff6b6b, #ff4444);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 24px;
    height: 24px;
    background: #ff4444;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#wheelCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#spinButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

#spinButton:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

.result-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1000;
}

.result-text {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
}

.result-value {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.options-section {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 40px);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 350px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.options-section.collapsed {
    padding: 10px;
    max-height: 60px;
    width: auto;
    background-color: transparent;
    box-shadow: none;
}

.options-content {
    opacity: 1;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.options-content::-webkit-scrollbar {
    width: 6px;
}

.options-content::-webkit-scrollbar-track {
    background: transparent;
}

.options-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.options-section.collapsed .options-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.options-section.initial-collapsed .options-content {
    display: none;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.options-section.collapsed .options-header {
    margin-bottom: 0;
}

.options-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.options-section.collapsed .options-title {
    display: none;
}

.options-buttons {
    display: flex;
    gap: 8px;
}

.options-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.options-buttons .btn i {
    font-size: 1.2rem;
}

#collapseButton i {
    transition: transform 0.3s ease;
}

.options-section.collapsed #collapseButton i {
    transform: rotate(180deg);
}

.current-options {
    margin: 20px 0;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding-bottom: 20px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option-item:hover {
    background-color: #e9ecef;
}

.saved-lists {
    margin-top: 10px;
}

.saved-list-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--secondary-color);
}

.saved-list-item.default {
    border-left: 4px solid var(--primary-color);
}

.saved-list-item h6 {
    font-weight: 600;
}

.saved-list-item small {
    display: block;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.fullscreen-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-button:hover {
    transform: scale(1.1);
    background-color: #357abd;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.form-range {
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .wheel-container {
        width: min(90vw, 90vh);
        height: min(90vw, 90vh);
    }

    .options-section {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }
}

.col-md-8 {
    transition: width 0.3s ease;
}

.options-section.collapsed ~ .col-md-8 {
    width: 100%;
}

.social-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-button i {
    margin-right: 5px;
    font-size: 1rem;
}

.facebook-btn {
    background-color: #1877f2;
}

.facebook-btn:hover {
    background-color: #0d6efd;
    color: white;
}

.zalo-btn {
    background-color: #0068ff;
}

.zalo-btn:hover {
    background-color: #0056d6;
    color: white;
}

.credit-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

.slider-container {
    position: relative;
    padding: 10px 0;
    margin: 0 10px;
}

.slider-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    transition: left 0.1s ease;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8em;
    color: #666;
}

.slider-label {
    margin-bottom: 1.2rem;
}

.form-range {
    width: 100%;
    margin: 0;
}

.form-range:focus {
    outline: none;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
} 