/* General Settings */
h1.parking-lot-title {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    color: #333;
}

/* Base button styling - Increased size */
.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px 10px; /* Increased padding */
    margin: 0 5px; /* Increased margin */
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Add button (green) */
.add-btn {
    color: #46b450; /* WordPress green */
    background-color: rgba(70, 180, 80, 0.05); /* Subtle background */
}
.add-btn:hover {
    background-color: rgba(70, 180, 80, 0.2); /* Stronger hover */
}

/* Edit button (blue) */
/* .edit-btn {
    color: #2271b1; 
    background-color: rgba(34, 113, 177, 0.05);
}
.edit-btn:hover {
    background-color: rgba(34, 113, 177, 0.2);
} */

/* Delete button (red) */
/* .delete-btn {
    color: #dc3232; 
    transform: rotate(45deg);
    background-color: rgba(220, 50, 50, 0.05);
}
.delete-btn:hover {
    background-color: rgba(220, 50, 50, 0.2);
} */

/* Dashicons sizing - Larger icons */
.dashicons {
    width: 35px; /* Increased from 20px */
    height: 35px;
    font-size: 35px; /* Increased from 20px */
}

/* Optional: Add subtle box shadow on hover */
.action-btn:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



/* Form container */
#points-container, #player-points-container, #player-starter-container {
    margin-bottom: 20px;
}

/* Week label styling */
.week-label {
    font-weight: bold;
    min-width: 60px;
    display: inline-block;
}

/* Adjust field group layout */
.point-field-group, .player-point-field-group, .player-starter-field-group{
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap for better spacing */
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Make input field take remaining space */
.point-field-group input, .player-point-field-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 150px; /* Limit input width */
}

/* Make select field take remaining space for starter groups */
.player-starter-field-group select {
    flex: 1;
    min-width: 200px; /* Ensure minimum width for multi-select */
}


/* Action buttons container */
.mt-3 {
    display: flex;
    gap: 10px;
}

/* Dashicons in buttons */
.dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* --------------------------------------------------------------------  */

select[name="rcc-team-table_length"], select[name="rcc-player-table_length"] {
  height: 35px;
  width: 45px;
}

#rcc-team-table_length, #rcc-player-table_length{
    margin: 14px 0px 5px 0px;
}

.add-team-btn, .add-player-btn{
    float: right;
    margin: 10px 10px 10px 10px;
}


/* Main Panel Styling */
.crp-panel {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px 0;
}

/* Title Styling */
.parking-lot-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    position: relative;
}

.parking-lot-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    margin: 10px auto 0;
}

/* Button Styling */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}
/* Strong z-index for Bootstrap 5 */
.modal-backdrop {
    z-index: 2049 !important;
}
.modal {
    z-index: 2050 !important;
}


/* Form Styling */
.form-control, .form-control-sm {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.text-danger {
    color: #e74c3c;
}

/* Table Styling */
#rcc-team-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 20px;
}

#rcc-team-table thead th, #rcc-player-table thead th  {
    background-color: #3498db;
    color: white;
    font-weight: 500;
    padding: 12px 15px;
    border: none;
}

#rcc-team-table tbody td, #rcc-player-table tbody td   {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

#rcc-team-table tbody tr:hover, #rcc-player-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Action Buttons */
.action-btn {
    border: none;
    background: transparent;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0 3px;
}

.action-btn:hover {
    transform: scale(1.1);
}

.add-btn {
    color: #2ecc71;
}

.add-btn:hover {
    background-color: rgba(46, 204, 113, 0.1);
}

/* .edit-btn {
    color: #3498db;
}

.edit-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
} */

/* .delete-btn {
    color: #e74c3c;
    transform: rotate(45deg);
}

.delete-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
} */

/* Points Container Styling */
#points-container, #player-points-container, #player-starter-container {
    margin-bottom: 20px;
}

.point-field-group, .player-point-field-group, .player-starter-field-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.week-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
}

.remove-btn {
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.remove-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    margin: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem auto;
    }
    
    #rcc-team-table, #rcc-player-table {
        display: block;
        overflow-x: auto;
    }
}

/* Animation for modal loader */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 0.75s linear infinite;
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

.select2-container--open {
    z-index: 999999 !important;
}

/* Starter field group specific styles - now same as points */
.remove-starter-btn {
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.remove-starter-btn:hover {
    background-color: #e74c3c;
    color: white;
}