/* General Styles */
body {
    background-color: #f6f8fa;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #37474f;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 600;
    color: #37474f;
}

/* Responsive Container */
.container-fluid {
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.gradient-text {
    color: #3498db;
    font-weight: 700;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3498db;
}

/* Probability Table Styles */
#probabilityTable th {
    background-color: #3498db;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: center;
    padding: 12px;
}

#probabilityTable {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.probability-cell {
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    padding: 12px;
    font-weight: 500;
}

.probability-cell:hover {
    background-color: #f5f5f5;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.probability-cell:active {
    transform: scale(0.98);
}

/* Probability color coding */
.probability-high {
    background-color: rgba(46, 204, 113, 0.1) !important;
    color: #27ae60;
    font-weight: bold;
}

.probability-medium {
    background-color: rgba(243, 156, 18, 0.1) !important;
    color: #d35400;
}

.probability-low {
    background-color: rgba(231, 76, 60, 0.1) !important;
    color: #c0392b;
}

.probability-zero {
    background-color: #f5f5f5 !important;
    color: #9e9e9e;
    text-decoration: line-through;
}

.probability-perfect {
    background-color: #2ecc71 !important;
    color: white;
    font-weight: bold;
    position: relative;
}

.heart-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: white;
    z-index: 1;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.probability-perfect .probability-value {
    position: relative;
    z-index: 2;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #546e7a;
    margin-bottom: 0.5rem;
}

.form-select, .form-control {
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #fafafa;
}

.form-select:focus, .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    background-color: white;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.badge.rounded-circle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #e74c3c;
}

/* Button Styles */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    background-color: white;
}

.card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: none;
    color: white;
}

/* Card Header Colors */
.card-header-primary {
    background-color: #3498db !important;
}

.card-header-warning {
    background-color: #f39c12 !important;
}

.card-header-info {
    background-color: #17a2b8 !important;
}

.card-header-success {
    background-color: #2ecc71 !important;
}

.card-header-danger {
    background-color: #e74c3c !important;
}

.card-body {
    padding: 1rem;
}

/* Loading Overlay Styles */
.loading-overlay {
    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: 9999;
    backdrop-filter: blur(3px);
}

.spinner-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #3498db;
}

.spinner-text {
    font-size: 1rem;
    font-weight: 500;
    color: #37474f;
    margin-top: 1rem;
}

/* Celebration Animation Styles */
.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    z-index: 9998;
    border-radius: 4px;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.celebration-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.celebration-message h2 {
    color: #2ecc71;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.celebration-message p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Alert Styles */
.alert {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #117a8b;
    border-left: 3px solid #17a2b8;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1rem;
    background-color: #17a2b8;
    color: white;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem;
}

/* Truth Booth Suggestion Styles */
#truthBoothSuggestion .alert-info {
    border-left: 3px solid #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

#suggestionResult {
    transition: all 0.3s ease;
}

#suggestedMale, #suggestedFemale {
    font-size: 1.1rem;
    color: #37474f;
    font-weight: 500;
}

#useSuggestionBtn {
    margin-top: 0.75rem;
}

/* Matching Night Suggestion Styles */
#matchingNightSuggestion .alert-info {
    border-left: 3px solid #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

#suggestionNightResult {
    transition: all 0.3s ease;
}

#suggestedPairs .list-group-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

#useSuggestionNightBtn {
    margin-top: 0.75rem;
}

/* Suggestion Results */
.suggestion-result {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.suggestion-title {
    font-size: 1rem;
    font-weight: 600;
    color: #37474f;
    margin-bottom: 0.75rem;
    text-align: center;
}

.suggestion-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.suggestion-name {
    font-weight: 500;
    color: #37474f;
}

.match-probability {
    font-size: 0.85rem;
    color: #78909c;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive Layout */
@media (min-width: 992px) {
    .container-fluid {
        padding: 1.5rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-grid {
        display: grid;
        grid-template-columns: 7fr 4fr;
        gap: 1.5rem;
    }
} 
