:root {
    --ivory-white: #FFFFEE;
    --sea-salt: #F8F8F8;
    --reseda-green: #5C7457;
    --cambridge-green: #9BB096;
    --accent-orange: #E98A15;
}

.setup-container {
    background-color: var(--sea-salt);
    padding: 2rem;
    border-radius: 10px;
}

.card {
    background-color: var(--ivory-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Make the Track New Match card narrower */
.setup-card {
    max-width: 550px;
    margin: 0 auto;
}

.card-header {
    background-color: var(--reseda-green);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.2rem;
}

.card-header h2 {
    color: #ffffff !important; /* Force white color for the title */
}

.card-header i {
    color: #ffffff !important; /* Force white color for the icon */
}

.btn-vamos {
    background-color: var(--reseda-green);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-vamos:hover {
    background-color: var(--accent-orange); /* Changed to orange for hover */
    color: white !important; /* Always white text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 138, 21, 0.4);
}

.team-divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.divider-line {
    height: 2px;
    background-color: var(--cambridge-green);
    flex-grow: 1;
    margin: 0 1rem;
}

.team-divider {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-orange);
    padding: 0 0.5rem;
}

.player-input {
    margin-bottom: 1.5rem;
}

.player-dash {
    color: var(--cambridge-green);
    font-weight: bold;
}

label {
    color: var(--reseda-green);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

label i {
    margin-right: 8px;
}

.form-control {
    background-color: #fff;
    border: 2px solid var(--cambridge-green);
    border-radius: 6px;
    padding: 0.75rem;
    color: #333;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--reseda-green);
    box-shadow: 0 0 0 0.25rem rgba(92, 116, 87, 0.25);
}

/* Editable field styling */
.editable-field {
    position: relative;
}

.edit-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cambridge-green);
    opacity: 0.7;
    pointer-events: none;
}

.form-control:hover + .edit-indicator,
.form-control:focus + .edit-indicator {
    opacity: 1;
    color: var(--reseda-green);
}

/* Previous matches styling */
.previous-matches {
    margin-top: 3rem;
}

.previous-matches-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.previous-matches-title {
    color: var(--reseda-green);
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.previous-matches-title i {
    margin-right: 10px;
}

/* Success message styling */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.success-message i {
    margin-right: 8px;
    color: #28a745;
}

.match-card {
    background-color: white;
    border-left: 4px solid var(--accent-orange);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative; /* For positioning the delete button */
}

.match-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.match-date {
    color: var(--cambridge-green);
    font-weight: 500;
    padding-right: 30px; /* Make room for delete button */
}

.team-names {
    margin-top: 0.5rem;
    font-weight: 600;
}

.no-matches {
    padding: 1.5rem;
    background-color: white;
    border-radius: 6px;
    text-align: center;
    color: var(--reseda-green);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.match-card-container {
    margin-bottom: 1rem;
    position: relative;
}

.match-status {
    margin-top: 0.5rem;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* New delete button styling */
.btn-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: transparent;
    color: #dc3545 !important;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 5;
}

.btn-delete i {
    font-size: 1rem;
    color: #dc3545 !important;
}

.btn-delete:hover {
    background-color: #ffeeee;
    transform: scale(1.1);
}

.daily-limit-info {
    background-color: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-orange);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Messages positioning */
.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

@media (max-width: 768px) {
    .setup-container {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .team-divider {
        font-size: 1.5rem;
    }
    
    .btn-vamos {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .messages-container {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
    
    .previous-matches-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .success-message {
        margin-top: 1rem;
        width: 100%;
    }
   
    .player-input .col-5 {
        padding: 0 5px; /* Reduce padding for more space */
    }
    
    .player-dash {
        font-size: 1rem;
    }
}
 @media (max-width: 576px) {
        .player-input .col-5 {
            width: 100%;
            margin-bottom: 0.5rem;
        }
        
        .player-input .col-2 {
            display: none !important;
        }
        
        .player-input {
            margin-bottom: 0;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .card-body {
            padding: 1rem;
        }
        
        .team-divider-container {
            margin: 1rem 0;
        }
        
        .match-card {
            padding: 0.75rem;
            padding-right: 2.5rem; /* Extra space for delete button */
        }
        
        .match-date, .team-names {
            font-size: 0.9rem;
        }
    }
@media (max-width: 576px) {
    /* Keep player layout intact but smaller */
    .player-input {
        margin-bottom: 1rem;
    }
    
    .player-input .col-5 {
        padding: 0 4px;
        /* Don't change width - keep side by side */
    }
    
    .player-input .col-2 {
        padding: 0;
        /* Keep dash visible but smaller */
    }
    
    .player-dash {
        font-size: 0.8rem;
    }
    
    .form-control {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    label {
        font-size: 0.85rem;
    }
    

    .player-input .col-5 {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .player-input .col-2 {
        display: none !important;
    }
    
    .player-input {
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .team-divider-container {
        margin: 1rem 0;
    }
    
    .match-card {
        padding: 0.75rem;
        padding-right: 2.5rem; /* Extra space for delete button */
    }
    
    .match-date, .team-names {
        font-size: 0.9rem;
    }
}