/* Color variables */
:root {
    --ftcc-gold: #FFB300;
    --primary-dark: #2C2C2C;
    --secondary-dark: #363636;
    --hover-dark: #404040;
    --text-black: #000000;
    --text-light: #FFFFFF;
    --bg-light-grey: #F5F5F5;
    --danger-red: #DC3545;
    --success-green: #198754;
}

/* Base styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-light-grey);
}

/* Content Card Layout */
.content-card {
    margin: 1rem;
}

    .content-card .card {
        background-color: var(--primary-dark);
        border-radius: 12px;
        /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
        box-shadow: rgba(17, 17, 26, 0.15) 0px 8px 24px, rgba(17, 17, 26, 0.15) 0px 16px 56px, rgba(17, 17, 26, 0.15) 0px 24px 80px;
        border: none;
        overflow: hidden;
    }

    .content-card .card-header {
        background-color: var(--ftcc-gold) !important;
        padding: 1.5rem;
        color: var(--text-black);
        border: none;
    }

    .content-card .card-body {
        padding: 1.5rem;
    }

.card-footer {
    background-color: var(--primary-dark);
    padding: 1rem;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Content Sections */
.content-section {
    background-color: var(--bg-light-grey);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem;
}

.registration-card-shadow {
    box-shadow: rgba(255, 255, 255, 0.05) 0px 1px 2px, rgba(255, 255, 255, 0.1) 0px 2px 4px, rgba(0, 0, 0, 0.2) 0px 4px 8px !important;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .registration-card-shadow:hover {
        transform: translateY(-2px);
        box-shadow: rgba(255, 255, 255, 0.08) 0px 2px 4px, rgba(255, 255, 255, 0.12) 0px 4px 8px, rgba(0, 0, 0, 0.25) 0px 8px 16px !important;
    }

.my-custom-shadow-elevated {
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px !important;
    position: relative;
    z-index: 1;
}

.custom-shadow {
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px;
    transition: box-shadow 0.3s ease-in-out;
}

    .custom-shadow:hover {
        box-shadow: rgba(17, 17, 26, 0.15) 0px 8px 24px, rgba(17, 17, 26, 0.15) 0px 16px 56px, rgba(17, 17, 26, 0.15) 0px 24px 80px;
    }

/* Button Styles */
button,
.btn,
input[type="button"],
input[type="submit"] {
    border-radius: 20px !important;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 0.5rem 0;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.btn-primary {
    background-color: var(--ftcc-gold) !important;
    color: var(--text-black) !important;
    border-color: var(--ftcc-gold) !important;
}

    .btn-primary:hover {
        background-color: #ffc234;
    }

.btn-secondary {
    background-color: var(--secondary-dark);
    color: var(--text-light);
}

    .btn-secondary:hover {
        background-color: var(--hover-dark);
    }

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--ftcc-gold);
    border: none;
    border-radius: 50%; /* This ensures it's perfectly circular */
    color: var(--primary-dark);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Increased z-index to ensure it's always on top */
    padding: 0; /* Remove padding to maintain circular shape */
}

    .back-to-top-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        background-color: var(--ftcc-gold); /* Keep the same gold color on hover */
    }

    .back-to-top-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.3);
    }

    .back-to-top-btn i {
        line-height: 1;
        font-size: 1.5rem; /* Adjust icon size */
    }

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

    .form-control:focus {
        border-color: var(--ftcc-gold);
        box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.25);
    }

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Unauthorized Message */
.unauthorized-message {
    background-color: var(--bg-light-grey);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: var(--text-black);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .content-card {
        margin: 0.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    background-color: var(--bg-light-grey);
    border-bottom: 1px solid #E0E0E0;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #E0E0E0;
    padding: 1.25rem 1.5rem;
}

/* Search results styling */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(245, 245, 245, 0.7);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 179, 0, 0.15);
}

.table thead.table-light th {
    background-color: #f0f0f0;
    color: var(--text-black);
    font-weight: 600;
}

/* Spinner for loading states */
.spinner-border.text-warning {
    color: var(--ftcc-gold) !important;
}

/* Button sizes for table actions */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Alert styling */
.alert-info {
    background-color: #e8f4f8;
    border-color: #d1e7f0;
    color: #0c5460;
}

/* Form label styling */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Input group focus styling */
.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.25);
    border-radius: 8px;
}

/* Input group styling to ensure proper alignment */
.input-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

    .input-group > .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none;
        flex: 1 1 auto;
    }

    .input-group > .btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        margin: 0;
        flex-shrink: 0;
    }

/* Fix for the search button */
.btn.search-btn {
    border-radius: 0 8px 8px 0;
    margin: 0;
    box-shadow: none;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Ensure the form-control and button heights align perfectly */
.form-control, .input-group > .btn {
    height: calc(1.5em + 1rem + 2px);
    line-height: 1.5;
}

/* Reset padding for the form controls in input groups */
.input-group > .form-control {
    padding: 0.5rem 1rem;
}

/* Fix focus state to prevent weird overlaps */
.input-group:focus-within {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 179, 0, 0.25);
}

.input-group > .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
    z-index: 1;
}

.input-group > .btn:hover {
    transform: none;
    box-shadow: none;
}

/* Modal z-index management */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

    /* Higher z-index for confirmation modal */
    .modal.confirmation-modal {
        z-index: 1060;
    }

/* Ensure modals stack properly when multiple are open */
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Additional styling for confirmation modal to make it stand out */
.confirmation-modal .modal-content {
    border: 2px solid var(--ftcc-gold);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}