.main-container {
    margin-top: 1rem;
    margin-bottom: 60px; /* Reduced space for footer */
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.input-group .form-control {
    border-radius: 20px 0 0 20px;
    padding: 12px 20px;
    font-size: 1.1rem;
}

.input-group .btn {
    border-radius: 0 20px 20px 0;
    padding: 12px 25px;
}

.deals-table {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.deals-table th {
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #eee;
    padding: 0.75rem;
}

.deals-table td {
    vertical-align: middle;
    padding: 0.75rem;
}

.product-link {
    color: #2962ff;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    color: #0039cb;
    text-decoration: underline;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    line-height: 1.2;
}

.price-original {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    line-height: 1.1;
}

.savings {
    color: #dc3545;
    font-weight: bold;
}

.btn-view-deal {
    border-radius: 20px;
    padding: 5px 15px;
}

#ai-summary {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: #666;
}

@media (max-width: 768px) {
    .deals-table {
        font-size: 0.9rem;
    }
    
    .btn-view-deal {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

.debug-panel {
    max-width: 800px;
    margin: 0 auto;
}

.debug-panel .card {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.debug-panel .card-header {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.debug-panel .card-body {
    font-size: 0.85rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.debug-panel p {
    font-family: monospace;
    margin-bottom: 0.5rem;
}

.debug-panel strong {
    display: inline-block;
    width: 120px;
    color: #666;
}

/* Add these styles at the end of the file */

#debug-deals-section {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

#debug-deals-section .card {
    border: 1px solid #ddd;
    border-radius: 8px;
}

#debug-deals-section .card-header {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

#debug-deals-section .table {
    margin-bottom: 0;
}

#debug-deals-section .text-muted {
    opacity: 0.7;
}

#debug-deals-section .product-link {
    color: #666;
    text-decoration: none;
}

#debug-deals-section .product-link:hover {
    color: #333;
    text-decoration: underline;
}

.duplicate-info {
    margin-top: 4px;
    font-size: 0.75rem;
}

.duplicate-info small {
    display: inline-block;
}

.table-warning {
    background-color: rgba(255, 243, 205, 0.3) !important;
}

#debug-deals-section .alert {
    margin: 0;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
}

.follow-up-question {
    transition: all 0.2s ease;
    border-radius: 20px;
    white-space: normal;
    text-align: left;
    margin: 0.25rem;
}

.follow-up-question:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#satisfaction-rating {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#satisfaction-rating.visible {
    opacity: 1;
}

#satisfaction-rating .btn-group {
    gap: 10px;
}

#satisfaction-rating .btn {
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#satisfaction-rating .btn.selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: 0.1;
    pointer-events: none;
}

#satisfaction-rating .btn-outline-success.selected {
    background-color: #d4edda !important;
    color: #198754 !important;
    border-color: #198754 !important;
    font-weight: 500;
}

#satisfaction-rating .btn-outline-danger.selected {
    background-color: #f8d7da !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    font-weight: 500;
}

/* Remove hover states for selected buttons */
#satisfaction-rating .btn.selected:hover,
#satisfaction-rating .btn.selected:focus,
#satisfaction-rating .btn.selected:active {
    transform: none;
    cursor: default;
}

#satisfaction-rating .btn i {
    margin-right: 5px;
}

#satisfaction-rating .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

#satisfaction-rating .btn.selected {
    transform: scale(1.05);
}

#satisfaction-rating .btn-outline-success.selected {
    background-color: #198754 !important;
    color: white !important;
    border-color: #198754 !important;
}

#satisfaction-rating .btn-outline-danger.selected {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

#satisfaction-rating .btn-outline-success.selected:hover,
#satisfaction-rating .btn-outline-success.selected:focus,
#satisfaction-rating .btn-outline-success.selected:active {
    background-color: #198754 !important;
    color: white !important;
    border-color: #198754 !important;
}

#satisfaction-rating .btn-outline-danger.selected:hover,
#satisfaction-rating .btn-outline-danger.selected:focus,
#satisfaction-rating .btn-outline-danger.selected:active {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Product cell styling */
.product-cell {
    min-width: 200px;
    padding-right: 1rem;
}

.product-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* Show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2px;
}

.store-name {
    font-size: 0.75rem;
    color: #666;
    margin-top: 1px;
    line-height: 1.2;
}

/* Price cell styling */
.price-cell {
    min-width: 140px;
}

.price-stack {
    text-align: right;
}

.price-current {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
    line-height: 1.2;
}

.price-current .currency {
    font-size: 0.85em;
}

.price-original {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    line-height: 1.1;
    margin-top: -2px;
}

.savings-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc3545;
    line-height: 1;
    margin-top: 2px;
}

/* Rating cell styling */
.rating-cell {
    width: 100px;
    text-align: center;
    vertical-align: middle;
}

/* NEW badge styling */
.badge.bg-info {
    background-color: #0dcaf0 !important;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    opacity: 0.9;
}

/* Add spacing between rows */
.deals-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.deals-table tr:last-child {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .product-cell {
        min-width: 160px;
    }
    
    .price-cell {
        min-width: 120px;
    }
    
    .rating-cell {
        width: 80px;
    }
}

/* Ensure table doesn't overflow on mobile */
.table-responsive {
    margin: 0 -12px;
    padding: 0 12px;
    width: calc(100% + 24px);
} 