/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --danger-color: #dc2626;
    --secondary-color: #4b5563;
    --background-color: #f3f4f6;
    --border-color: #e5e7eb;
}

/* Base Styles */
body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    background-color: var(--background-color);
}

/* Container */
.container {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.header-left, 
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
    gap: 1rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.beta-tag {
    font-size: 0.75rem;
    background-color: #f97316;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Icon Styles */
.icon {
    height: 35px;
    width: auto;
    transition: opacity 0.2s;
}

.icon:hover {
    opacity: 0.8;
}

/* Typography */
h1 {
    color: #111827;
    margin-bottom: 1.5rem;
}

/* Input and Buttons */
.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Items List */
.items-list {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    max-height: 400px;
    overflow-y: auto;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 1rem;
    color: #374151;
}

/* Remove Button */
.remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.remove-btn:hover {
    color: #b91c1c;
}

/* Progress Bar */
.progress-bar {
    background-color: var(--border-color);
    border-radius: 0.25rem;
    height: 0.5rem;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--primary-color);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Comparison Section */
.comparison-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.comparison-item {
    flex: 1;
    max-width: 300px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comparison-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Rankings */
.rankings {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.rankings h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.rankings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.ranking-item:last-child {
    border-bottom: none;
}

.rank {
    font-weight: 500;
    color: var(--primary-color);
}

/* Quick Feedback */
.quick-feedback-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.quick-feedback-container h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #1e293b;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-positive:hover {
    background-color: #ecfdf5;
    border-color: #059669;
}

.feedback-neutral:hover {
    background-color: #fef9c3;
    border-color: #ca8a04;
}

.feedback-negative:hover {
    background-color: #fee2e2;
    border-color: #dc2626;
}

.feedback-message {
    padding: 0.5rem;
    color: #059669;
    font-weight: 500;
}

/* Quick Start */
.quick-start-container {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.quick-start-btn {
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.2s;
    text-align: center;
    min-width: 120px;
}

.quick-start-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.quick-start-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility Classes */
.buttons-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.error-message {
    color: var(--danger-color);
    margin-top: 0.5rem;
    display: none;
}

.group-header {
    margin-top: 1.5rem;
    padding: 0.5rem;
    background-color: var(--background-color);
    font-weight: bold;
    border-radius: 0.25rem;
}

.info-box {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.comparisons {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

/* Media Queries */
@media (max-width: 640px) {
    .header {
        padding: 1rem;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .beta-tag {
        font-size: 0.65rem;
    }
}
/* 
.modal-content {
    background-color: #343a40;
    color: #fff;
  }

  .modal-header {
    border-bottom: 1px solid #454d55;
  }

  .modal-header .btn-close {
    background-color: #fff;
    opacity: 0.8;
  }

  .modal-footer {
    border-top: 1px solid #454d55;
  }

  .help-title {
    color: #ffc107;
  }

  .modal-content {
    background-color: var(--modal-bg);
    color: var(--modal-text);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--modal-border);
    padding: 1.5rem;
}

.modal-header .btn-close {
    background-color: var(--modal-text);
    opacity: 0.8;
    padding: 0.5rem;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title.help-title {
    color: var(--modal-title);
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--modal-text);
}

.modal-footer {
    border-top: 1px solid var(--modal-border);
    padding: 1rem 1.5rem;
}

/* Bootstrap Override Styles */
.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
} */

/* Ensure Bootstrap doesn't override your header styles */
.header {
    position: relative;
    z-index: 1030;
}

/* Preserve your custom button styles */
.btn-primary:not(.modal .btn-primary) {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:not(.modal .btn-primary):hover {
    background-color: #1d4ed8;
}

/* Additional utility classes to handle Bootstrap conflicts */
.header .nav-link {
    padding: 0;
    display: inline-flex;
}

.header .nav-link:hover {
    opacity: 0.8;
}

/* Media Queries */
@media (max-width: 640px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 0.375rem;
    }
}


/* Modal styles using your existing variables */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #374151;
}

.modal-body .highlight-text {
    color: var(--primary-color);
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-buttons .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.modal-buttons .btn-secondary:hover {
    background-color: #374151;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}
.rankings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.peek-button-container {
    text-align: center;
    margin: 2rem 0;
}

/* Animation for smooth showing/hiding */
.rankings {
    transition: opacity 0.3s ease;
}