:root {
    --grundee-green: #54A300;
    --grundee-dark: #2c3e50;
    --grundee-light: #f8f9fa;
    --grundee-accent: #e9f5db;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--grundee-light);
    color: var(--grundee-dark);
}

a {
    color: var(--grundee-dark);
    text-decoration: none;
}

a:hover {
    color: var(--grundee-green);
}

/* Navbar */
.navbar-grundee {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    color: var(--grundee-green) !important;
    font-size: 1.5rem;
}

/* Buttons */
.btn-grundee {
    background-color: var(--grundee-green);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-grundee:hover {
    background-color: #438200;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(84, 163, 0, 0.3);
}

.btn-outline-grundee {
    border: 2px solid var(--grundee-green);
    color: var(--grundee-green);
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-grundee:hover {
    background-color: var(--grundee-green);
    color: white;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 0.2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(84, 163, 0, 0.15);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 700;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Utilities */
.text-grundee {
    color: var(--grundee-green) !important;
}

.bg-grundee {
    background-color: var(--grundee-green) !important;
}

.bg-grundee-soft {
    background-color: var(--grundee-accent) !important;
}

.border-grundee {
    border-color: var(--grundee-accent) !important;
}

/* Section Titles */
.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.icon-square {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    border-color: #54A300 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.bg-success-subtle {
    background-color: #d1e7dd;
}

.text-success {
    color: #146c43;
}

.bg-danger-subtle {
    background-color: #f8d7da;
}

.text-danger {
    color: #b02a37;
}

.bg-warning-subtle {
    background-color: #fff3cd;
}

.text-warning-emphasis {
    color: #664d03;
}

/* RSVP Button Styles */
.btn-rsvp {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

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

.btn-rsvp-yes {
    background-color: #fff;
    border-color: #198754;
    color: #198754;
}

.btn-rsvp-yes:hover {
    background-color: #d1e7dd;
    border-color: #146c43;
    color: #146c43;
}

.btn-rsvp-yes.active {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-rsvp-no {
    background-color: #fff;
    border-color: #dc3545;
    color: #dc3545;
}

.btn-rsvp-no:hover {
    background-color: #f8d7da;
    border-color: #b02a37;
    color: #b02a37;
}

.btn-rsvp-no.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-rsvp-maybe {
    background-color: #fff;
    border-color: #ffc107;
    color: #997404;
}

.btn-rsvp-maybe:hover {
    background-color: #fff3cd;
    border-color: #997404;
    color: #664d03;
}

.btn-rsvp-maybe.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.reason-field {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Hover effect for links */
.hover-text-grundee:hover {
    color: var(--grundee-green) !important;
}

/* Messages Container - Bottom Overlay */
.messages-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
}

.message-toast {
    pointer-events: auto;
    margin-bottom: 1rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.4s ease-out;
}

.message-toast.fade.show {
    opacity: 1;
}

.message-toast.fade:not(.show) {
    animation: fadeOutDown 0.3s ease-out;
}

/* Message Toast Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Enhanced alert styles for overlay */
.message-toast.alert-success {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
    color: #0f5132;
}

.message-toast.alert-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #842029;
}

.message-toast.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #664d03;
}

.message-toast.alert-info {
    background-color: #cff4fc;
    border-left: 4px solid #0dcaf0;
    color: #055160;
}


/* Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    gap: 2px;
    font-family: monospace;
}

.heatmap-cell {
    background-color: var(--grundee-green);
    border-radius: 2px;
    transition: all 0.1s;
    cursor: pointer;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.5);
    z-index: 10;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.heatmap-label {
    font-size: 0.7rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5px;
    font-weight: bold;
}

.heatmap-header {
    font-size: 0.8rem;
    text-align: center;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: bold;
}


/* Option Card Styles */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.option-card {
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    height: 100%;
}

.option-card:hover {
    border-color: #54A300;
    box-shadow: 0 4px 12px rgba(84, 163, 0, 0.15);
}

.option-card.selected {
    border-color: #54A300;
    background-color: #f0f9ff;
    box-shadow: 0 4px 12px rgba(84, 163, 0, 0.2);
}

.option-card .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: var(--bg-light);
    color: var(--text-muted);
}

.option-card .icon-circle i {
    color: #666;
    transition: all 0.2s ease;
}

.option-card.selected .icon-circle {
    background-color: #54A300 !important;
    color: white !important;
}

.option-card.selected .icon-circle i {
    color: white;
}

/* Captain Profile Section Enhancement */
.captain-profile-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #54A300;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.captain-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.captain-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #54A300 0%, #468a00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Horizontal Rule with Text */
.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: 0.5;
}

.hr-text:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    background-color: #fff;
}


/* Activity icon styling */
.activity-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 4px;
}

/* Player badges container */
.player-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Filters */
.filter-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-fab i {
    font-size: 1.5rem;
}

.active-filters-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.875rem;
    margin: 0rem 0.25rem;
}

.active-filters-chip .badge {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .filter-fab {
        display: none;
    }
}