body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #fc6607 0%, #ff7a1a 25%, #ff8e2d 50%, #ffa240 75%, #ffb653 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Ensure content containers have proper background for readability */
.container, .container-fluid {
    background-color: rgba(255, 255, 255, 0.99);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
}

/* Card styling for better contrast on gradient */
.card {
    background-color: rgba(255, 255, 255, 0.99);
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

/* Navbar styling to integrate with gradient background */
.navbar {
    background: linear-gradient(135deg, #fc6607 0%, #ff7a1a 25%, #ff8e2d 50%, #ffa240 75%, #ffb653 100%) !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Keep navbar brand (logo panel) white */
.navbar-brand {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px;
    padding: 12px 16px !important;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.navbar-brand:hover {
    background-color: rgba(255, 255, 255, 0.98) !important;
    text-decoration: none !important;
}

.navbar-brand span {
    color: #fc6607 !important;
}

.navbar-brand small {
    color: #666 !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

/* Style navbar links for better contrast on orange background */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin-right: 10px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Style buttons in navbar */
.navbar .btn {
    margin-left: 5px;
    border-radius: 6px;
}

/* Force navbar buttons to look like proper buttons */
.navbar .btn-outline-primary,
.navbar .btn-outline-secondary {
    color: #fe6a10 !important;
    background-color: white !important;
    background-image: none !important;
    border: 2px solid white !important;
    border-color: white !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

.navbar .btn-outline-primary:hover,
.navbar .btn-outline-primary:focus,
.navbar .btn-outline-primary:active,
.navbar .btn-outline-secondary:hover,
.navbar .btn-outline-secondary:focus,
.navbar .btn-outline-secondary:active {
    color: #fe6a10 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
    border-color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Override Bootstrap's outline button styles */
.navbar .btn-outline-primary:not(:disabled):not(.disabled):active,
.navbar .btn-outline-secondary:not(:disabled):not(.disabled):active {
    color: #fe6a10 !important;
    background-color: white !important;
    border-color: white !important;
}

/* Nuclear option - force all navbar buttons to be visible */
.navbar .d-flex .btn-outline-primary,
.navbar .d-flex .btn-outline-secondary {
    color: #fc6607 !important;
    background-color: white !important;
    background-image: none !important;
    border: 2px solid #fc6607 !important;
    border-color: #fc6607 !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 6px !important;
}

.navbar .d-flex .btn-outline-primary:hover,
.navbar .d-flex .btn-outline-secondary:hover {
    color: white !important;
    background-color: #fc6607 !important;
    border-color: #fc6607 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Style user info text in navbar - force dark text */
.navbar .me-2 {
    color: #333 !important;
    font-weight: 500;
}

/* Ensure user info text is always dark */
.navbar .me-2.text-dark {
    color: #333 !important;
}

/* Force all navbar text to be dark */
.navbar span {
    color: #333 !important;
}

/* Force navbar text elements to be dark */
.navbar .d-flex span {
    color: #333 !important;
}

/* Nuclear option - force all text in navbar to be dark */
.navbar * {
    color: #333 !important;
}

/* But keep buttons with their proper colors */
.navbar .btn {
    color: inherit !important;
}

/* Style user info text specifically */
.user-info-text {
    color: #333 !important;
    font-weight: 500;
    text-decoration: none !important;
    cursor: default !important;
}

.user-info-text:hover {
    color: #333 !important;
    text-decoration: none !important;
}

/* Navbar button styling to ensure visibility */
.navbar .btn-outline-primary {
    color: #fc6607 !important;
    border-color: #fc6607 !important;
    background-color: transparent !important;
}

.navbar .btn-outline-primary:hover {
    color: white !important;
    background-color: #fc6607 !important;
    border-color: #fc6607 !important;
}

.navbar .btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

.navbar .btn-outline-secondary:hover {
    color: white !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

header nav a {
    margin-right: 10px;
}

/* Fancy heading styles with orange motif - only for main section headings */
.container h1,
.container-fluid h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #fc6607 !important;
    text-align: center !important;
    margin: 2rem 0 1.5rem 0 !important;
    position: relative !important;
    padding: 1rem 0 !important;
}

.container h1::before,
.container-fluid h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fc6607, #ff7a1a, #ff8e2d);
    border-radius: 2px;
}

.container h1::after,
.container-fluid h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff8e2d, #ff7a1a, #fc6607);
    border-radius: 2px;
}

/* Membership section heading */
.container h2,
.container-fluid h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #fc6607 !important;
    text-align: center !important;
    margin: 2rem 0 1.5rem 0 !important;
    position: relative !important;
    padding: 1rem 0 !important;
}

.container h2::before,
.container-fluid h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fc6607, #ff7a1a, #ff8e2d);
    border-radius: 2px;
}

.container h2::after,
.container-fluid h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff8e2d, #ff7a1a, #fc6607);
    border-radius: 2px;
}

/* Reset card headings to normal styling but keep original sizes */
.card h1,
.card h2,
.card h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: inherit !important;
    text-align: inherit !important;
    margin: 0 0 1rem 0 !important;
    position: inherit !important;
    padding: 0 !important;
}

.card h1::before,
.card h1::after,
.card h2::before,
.card h2::after,
.card h3::before,
.card h3::after {
    display: none !important;
}


.calendar-container {
    width: 100%;
    margin: 2rem 0;
    padding: 0;
}

/* FullCalendar styling improvements */
.fc {
    font-family: inherit !important;
    background-color: rgba(255, 255, 255, 0.99) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    padding: 20px !important;
}

.fc-toolbar {
    margin-bottom: 1.5rem !important;
}

.fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #fc6607 !important;
}

.fc-button {
    background-color: #fc6607 !important;
    border-color: #fc6607 !important;
    color: white !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.fc-button:hover {
    background-color: #e55a06 !important;
    border-color: #e55a06 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.fc-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(252, 102, 7, 0.25) !important;
}

.fc-button-active {
    background-color: #e55a06 !important;
    border-color: #e55a06 !important;
}

.fc-daygrid-day-number {
    color: #333 !important;
    font-weight: 500 !important;
}

.fc-col-header-cell {
    background-color: #f8f9fa !important;
    color: #fc6607 !important;
    font-weight: 600 !important;
    padding: 12px 8px !important;
}

.fc-timegrid-slot {
    border-color: #e9ecef !important;
}

.fc-timegrid-slot-label {
    color: #666 !important;
    font-weight: 500 !important;
}

.fc-event {
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    font-weight: 500 !important;
}

.fc-event-title {
    font-weight: 500 !important;
}

.fc-today {
    background-color: rgba(252, 102, 7, 0.1) !important;
}

.fc-day-today .fc-daygrid-day-number {
    color: #fc6607 !important;
    font-weight: 700 !important;
}

/* User participations table styling */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(252, 102, 7, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(252, 102, 7, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.table-dark {
    background-color: #fc6607 !important;
    border-color: #fc6607 !important;
}

.table-dark th {
    border-color: #e55a06 !important;
    color: white !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.table th {
    padding: 1rem 0.75rem;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Status alert for pending submissions */
.alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #0c5460 !important;
    border-radius: 8px !important;
    border-left: 4px solid #0dcaf0 !important;
    font-size: 0.9rem !important;
}

.alert-info i {
    color: #0dcaf0 !important;
    margin-right: 0.5rem;
}

/* Allow calendar event titles to wrap onto multiple lines */
.fc .fc-event-title,
.fc .fc-event-title-container {
    white-space: normal;
}

/* Footer styling */
footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
    margin-top: auto !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

footer .container {
    max-width: 1200px !important;
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    backdrop-filter: blur(10px) !important;
}

footer .row {
    margin: 0 !important;
    padding: 0 !important;
}

footer .col-md-6 {
    padding: 0 !important;
}

footer p {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    margin: 2px 0 !important;
}

footer .col-md-6:first-child p {
    margin-left: 1.5rem !important;
}

footer a {
    transition: color 0.3s ease !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

footer a:hover {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.footer-logo {
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    transition: all 0.3s ease !important;
    filter: brightness(1.2) !important;
    display: block !important;
    transform: scale(1.0) !important;
    transform-origin: center !important;
}

.footer-logo:hover {
    transform: scale(1.1) !important;
    filter: brightness(1.4) !important;
}
