/* CSS Variables for theming */
:root {
    --primary-color: #0a4d68;
    --primary-light: #088395;
    --secondary-color: #00325a;
    --accent-color: #ff9900;
    --accent-secondary: #05bfdb;
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
    --background-color: #0a1929;
    --card-bg-color: #0c2138;
    --card-hover-color: #0e253d;
    --dropdown-bg-color: #0c2138; /* Match card background */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Dark theme */
[data-theme="dark"] {
    --primary-color: #0a4d68;
    --primary-light: #088395;
    --secondary-color: #00325a;
    --background-color: #0a1929;
    --card-bg-color: #0c2138;
    --card-hover-color: #0e253d;
    --dropdown-bg-color: #0c2138;
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
}

/* Light theme */
[data-theme="light"] {
    --primary-color: #0a4d68;
    --primary-light: #088395;
    --secondary-color: #e7f4ff;
    --background-color: #f4f9ff;
    --card-bg-color: #ffffff;
    --card-hover-color: #f0f7ff;
    --dropdown-bg-color: #ffffff;
    --text-color: #002a42;
    --text-muted: #667788;
}

/* Background Image styling */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://ips4-wowslegends-global.gcdn.co/monthly_2024_11/Promoscreen_6.9_Gdansk_Bureau_1200x600_WOWSL.jpg.a7bda488d7158cc7d7024f1d7ebb663f.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    opacity: 0.25;
    z-index: -1;
}

/* Discord Page Specific Styles */
.discord-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.discord-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Responsive adjustments for Discord grids */
@media (max-width: 768px) {
    .discord-members-grid {
        grid-template-columns: 1fr;
    }
    
    .discord-games-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .discord-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.discord-member-card {
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    min-height: 80px;
    height: 100%;
}

.discord-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 150, 255, 0.3);
    border-color: #00e5ff;
}

.discord-warships-player {
    background: rgba(0, 50, 100, 0.8);
    border-color: #1976d2;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
}

.discord-warships-player:hover {
    box-shadow: 0 5px 20px rgba(25, 118, 210, 0.5);
    border-color: #2196f3;
}

.discord-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #2196f3;
}

.discord-warships-player .discord-avatar {
    border-color: #1976d2;
}

.discord-member-info {
    flex: 1;
}

.discord-username {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.discord-status-indicator.online { background: #43b581; box-shadow: 0 0 5px #43b581; }
.discord-status-indicator.idle { background: #faa61a; box-shadow: 0 0 5px #faa61a; }
.discord-status-indicator.dnd { background: #f04747; box-shadow: 0 0 5px #f04747; }

.discord-game-info {
    color: #64b5f6;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discord-game-name {
    color: #81c784;
    font-weight: 500;
}

.discord-warships-badge {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.discord-game-item {
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
}

.discord-game-item-name {
    font-weight: 500;
    color: #81c784;
}

.discord-game-item-count {
    background: rgba(33, 150, 243, 0.3);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    color: #00e5ff;
}

/* Reset and Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    position: relative;
    z-index: 1; /* Above animated background */
}

/* Adjust main content container */
main .container {
    position: relative;
    z-index: 1;
    background-color: rgba(10, 25, 41, 0.85); /* Slightly transparent background */
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 30px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern browsers */
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 1.2px;
}

h2 {
    font-size: 1.6rem;
    color: var(--primary-light);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    word-wrap: break-word; /* Allow long words to break */
    overflow-wrap: break-word; /* Modern browsers */
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Header - Naval-Inspired Design - UPDATED with fixes */
header {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 33, 58, 0.95) 0%, rgba(6, 21, 40, 0.95) 100%);
  padding: 3px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible; /* Changed from hidden to visible for mobile menu */
  border-bottom: 2px solid rgba(255, 153, 0, 0.3);
  transition: all 0.3s ease;
  height: 60px; /* Initial height when not scrolled */
  display: flex;
  align-items: center; /* Center items vertically */
}

/* Add this new class for scroll effect */
header.scrolled {
  padding: 1px 0;
  height: 40px; /* Reduced height when scrolled */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header.scrolled .logo {
  font-size: 15px;
}

header.scrolled .logo i {
  font-size: 15px;
}

/* Subtle naval grid pattern */
header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(9, 49, 98, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 49, 98, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
  z-index: -1;
}

/* Accent line at top - matched to bottom line */
header:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 153, 0, 0.3);
  z-index: 1;
}

/* Add this new radar scan element */
.radar-scan {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, transparent 0%, transparent 70%, rgba(0, 168, 204, 0.08) 100%);
  z-index: -1;
  opacity: 0.6;
  animation: radar 5s infinite linear;
  pointer-events: none;
}

@keyframes radar {
  0% {
    transform: scale(0.6) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 0;
  }
}

/* Update nav links styling */
.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  font-size: 1rem;
  position: relative;
}

.nav-links a:hover {
  color: #00a8cc;
  background-color: rgba(0, 168, 204, 0.1);
  border: 1px solid rgba(0, 168, 204, 0.3);
}

.nav-links a.active {
  color: #ff9900;
  background-color: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
}

.nav-links a.active:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff9900;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure full width */
    padding: 0 15px; /* Added padding for better spacing on mobile */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.logo i {
    font-size: 28px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 100%; /* Take full height of header */
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

header.scrolled .nav-links a {
  font-size: 0.85rem;
  padding: 5px 10px; /* Smaller padding when scrolled */
}

.theme-toggle, .wows-crate {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover, .wows-crate:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

header.scrolled .wows-crate,
header.scrolled .theme-toggle {
  transform: scale(0.85);
}

.wows-crate {
    color: var(--accent-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile menu button - Fixed */
/* Default state - hidden on desktop */
.mobile-menu-btn {
    display: none; /* Hide by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background */
    border-radius: 5px;
    padding: 5px;
    border: none;
    cursor: pointer;
    z-index: 210;
    position: relative;
    margin-right: 5px;
}

/* Only show on mobile screens */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; /* Show on mobile without !important */
    }
}

header.scrolled .mobile-menu-btn {
  transform: scale(0.85);
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ff9900 !important; /* Change to your accent color */
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Stronger shadow */
    margin: 3px 0; /* Slightly more spacing */
}

/* Active hamburger animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu backdrop for click-away feature */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 90;
}

.menu-backdrop.active {
    display: block;
}

/* Main content */
main {
    padding: 30px 0;
    flex: 1;
}

/* Cards */
.card {
    background-color: rgba(12, 33, 56, 0.9);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 500;
    color: var(--accent-secondary);
    font-size: 0.95rem;
}

input, select, textarea {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
    max-width: 100%; /* Ensure inputs don't overflow */
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(5, 191, 219, 0.2);
}

/* Fix for select dropdown background color */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 2.5em;
}

/* Fix dropdown colors in all browsers */
select option {
    background-color: var(--dropdown-bg-color);
    color: var(--text-color);
}

button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button.danger {
    background-color: var(--danger-color);
}

button.danger:hover {
    background-color: #e04050;
}

button.success {
    background-color: var(--success-color);
}

button.success:hover {
    background-color: #2eb850;
}

button.warning {
    background-color: var(--warning-color);
    color: #000;
}

button.warning:hover {
    background-color: #ffcd39;
}

button.secondary {
    background-color: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
}

button.secondary:hover {
    background-color: var(--primary-light);
    color: white;
}

/* Tables */
.availability-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: var(--secondary-color);
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

tr:last-child {
    border-bottom: none;
}

/* Availability calendar */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.calendar-day {
    background-color: var(--card-bg-color);
    padding: 18px 15px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.calendar-day:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition);
}

.calendar-day:hover {
    background-color: var(--card-hover-color);
    transform: translateY(-3px);
}

.calendar-day:hover:before {
    background-color: var(--primary-light);
}

.calendar-day.selected {
    background-color: rgba(5, 191, 219, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-3px);
}

.calendar-day.selected:before {
    background-color: var(--accent-color);
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.time-slot {
    background-color: var(--card-bg-color);
    padding: 12px 10px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.time-slot:hover {
    background-color: var(--card-hover-color);
    transform: translateY(-2px);
}

.time-slot.selected {
    background-color: rgba(5, 191, 219, 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Events */
.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.event-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.event-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.event-card .event-info {
    margin-bottom: 20px;
    flex: 1;
}

.event-card .event-info p {
    margin-bottom: 8px;
}

.event-card .event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.event-date, .event-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.event-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 15px;
    border-top-right-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.event-badge.match {
    background-color: var(--danger-color);
    color: white;
}

.event-badge.scrimmage {
    background-color: var(--warning-color);
    color: #000;
}

.rsvp-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rsvp-status span {
    font-weight: 500;
}

.rsvp-status.yes {
    background-color: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.rsvp-status.maybe {
    background-color: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.rsvp-status.no {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Participant name tags */
.participant-group {
    margin-bottom: 15px;
}

.participant-header {
    margin-bottom: 10px;
    font-weight: bold;
}

.participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.participant {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Empty state */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.1);
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Event Archive Styles */
.event-type-item {
    background: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--primary-color);
}

.event-type-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--accent-secondary);
}

.event-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 60px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.event-type-item:hover .event-icon {
    transform: scale(1.05);
    background-color: var(--primary-light);
}

.event-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.2em;
    margin-bottom: 5px;
}

/* Date Items */
.date-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--card-hover-color);
}

.date-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 40px;
    color: white;
    transition: var(--transition);
}

.date-item:hover .date-icon {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.date-display {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
}

/* Event Items Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--card-hover-color);
}

.event-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.event-item p {
    margin-bottom: 5px;
}

.event-item p:last-child {
    font-weight: 600;
    color: var(--accent-color);
}

/* Notifications */
.notifications-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: var(--card-bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 4.7s forwards;
    border-left: 4px solid var(--primary-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.notification:hover {
    transform: translateY(-3px);
    animation-play-state: paused;
}

.notification:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--primary-light);
    animation: notificationTimer 5s linear forwards;
}

@keyframes notificationTimer {
    to {
        width: 0%;
    }
}

.notification h4 {
    margin-bottom: 5px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.success:after {
    background-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.error:after {
    background-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.warning:after {
    background-color: var(--warning-color);
}

.notification-list-item {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    background-color: var(--card-bg-color);
    border-left: 4px solid var(--primary-light);
    transition: var(--transition);
}

.notification-list-item:hover {
    background-color: var(--card-hover-color);
}

.notification-list-item.unread {
    border-left-color: var(--accent-color);
    background-color: rgba(5, 191, 219, 0.05);
}

.notification-list-item h4 {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-list-item .date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notification-dot {
    width: 8px;
    height: 8px;
    background-color: var(--danger-color);
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 5px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-primary);
    color: var(--text-muted);
    flex-shrink: 0; /* Prevent tab from shrinking */
}

.tab:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

/* Loading spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
    margin-right: 10px;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Profile section */
.profile-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
}

.profile-info h2 {
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background-color: var(--card-bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--box-shadow);
    transform: none;
    transition: transform 0.3s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* Responsive styles - UPDATED */
@media (max-width: 768px) {
  /* Mobile menu button - Make sure it's visible */
  .mobile-menu-btn {
    display: flex !important;
    z-index: 210; /* Increase z-index to ensure visibility */
    position: relative;
    margin-right: 5px; /* Add margin for better touch area */
  }

  /* Header container padding adjustment */
  .header-content {
    padding: 0 15px;
  }

  /* Logo adjustments to prevent overflow */
  .logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    white-space: nowrap;
  }

  .logo img {
    height: 35px !important;
    width: auto !important;
    margin-right: 5px;
  }

  .logo span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nav links - side sliding menu */
  .nav-links {
    position: fixed;
    top: 0; /* Start from top of screen */
    right: -85%; /* Start off-screen */
    bottom: 0;
    width: 85%;
    max-width: 300px;
    background: linear-gradient(180deg, #0c213a 0%, #061528 100%);
    padding: 80px 20px 20px; /* Add padding on top for header */
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease; /* Slide from right */
    z-index: 200;
    overflow-y: auto;
    border-left: 2px solid rgba(255, 153, 0, 0.3);
    align-items: flex-start;
  }

  .nav-links.active {
    right: 0; /* Slide in from right */
    display: flex;
  }

  /* Add spacing between nav items */
  .nav-links a,
  .nav-links button {
    margin-bottom: 15px;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 15px; /* Larger touch area */
  }

  /* Events list for mobile */
  .events-list {
    grid-template-columns: 1fr;
  }

  /* Calendar for mobile */
  .calendar {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Time slots for mobile */
  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Profile header for mobile */
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  /* Profile stats for mobile */
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card padding for mobile */
  .card {
    padding: 20px 15px;
  }

  /* Typography for mobile */
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  /* Fix buttons in mobile view */
  .event-actions {
    flex-wrap: wrap;
  }

  .event-actions button {
    flex: 1;
    min-width: 100px;
  }

  /* Notifications container for mobile */
  .notifications-container {
    width: 90%;
    right: 5%;
    left: 5%;
  }

  /* Fix flex layouts for better mobile */
  .flex {
    flex-wrap: wrap;
  }

  /* Settings container for mobile */
  .settings-container {
    flex-direction: column;
  }

  /* Prevent horizontal overflows on mobile */
  .page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  /* Time slots for small mobile */
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Profile stats for small mobile */
  .profile-stats {
    grid-template-columns: 1fr;
  }

  /* Container padding for small mobile */
  .container {
    padding: 15px 10px;
  }

  /* Card padding for small mobile */
  .card {
    padding: 15px 12px;
  }

  /* Typography for small mobile */
  h1 {
    font-size: 1.6rem;
  }

  /* Event badge for small mobile */
  .event-badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
  }

  /* Adjust modal width on very small screens */
  .modal-content {
    width: 95%;
    max-height: 80vh;
  }

  /* Adjustment for redemption code cards on small screens */
  .code-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .code-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* Ensure strategy containers work on mobile */
  #strategyMapContainer,
  #fullPageStrategyMapContainer {
    width: 100%;
    min-height: 300px;
    overflow-x: auto;
  }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(10%);
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-muted {
    color: var(--text-muted);
}

/* Enhanced Redemption Codes Styles - Updated */
.redemption-code-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px; /* Keep spacing between cards */
    border-left: 4px solid var(--accent-color); /* Keep individual borders */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;

    /* Add constant 3D effect and shadow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateZ(0) translateY(-2px); /* Subtle lift */
}

.redemption-code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.redemption-code-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.code-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 10px;
}

.code-content {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    align-items: center;
}

.code-image {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.code-image i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.code-details {
    flex: 1;
}

.code-details h2 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-family: monospace;
    letter-spacing: 1px;
}

.code-value {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    position: relative;
}

.code-value::before {
    content: 'CODE:';
    position: absolute;
    top: -8px;
    left: 10px;
    background-color: var(--card-bg-color);
    padding: 0 5px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Hide the rendered code value when displaying the large code title */
.code-details h2 + .code-value {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
}

.code-description {
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

.code-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.code-copy {
    background: none;
    border: none;
    color: var(--accent-secondary);
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

.code-copy:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.code-actions .button.success {
    position: relative;
    overflow: hidden;
}

.code-actions .button.success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.code-actions .button.success:hover::after {
    left: 100%;
}

/* Type-specific styling */
.redemption-code-card[data-type="camo"] {
    border-left-color: #ff9933;
}

.redemption-code-card[data-type="booster"] {
    border-left-color: #33cc33;
}

.redemption-code-card[data-type="crate"] {
    border-left-color: #cc33ff;
}

.redemption-code-card[data-type="flag"] {
    border-left-color: #3399ff;
}

.redemption-code-card[data-type="patch"] {
    border-left-color: #ff3366;
}

.redemption-code-card[data-type="ship"] {
    border-left-color: #ffcc00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .code-image {
        margin-bottom: 15px;
    }

    .code-actions {
        flex-direction: column;
        gap: 15px;
    }

    .code-copy, .code-actions .button.success {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for new codes */
@keyframes newCodeHighlight {
    0% {
        background-color: rgba(255, 153, 0, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

.redemption-code-card.new-code {
    animation: newCodeHighlight 2s ease-out;
}

/* Loading animation */
.redemption-codes-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.redemption-codes-loading .loading-spinner {
    width: 40px;
    height: 40px;
}

/* Empty state styles */
.redemption-codes-empty {
    padding: 60px 0;
    text-align: center;
}

.redemption-codes-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.3;
}

.redemption-codes-empty p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Availability Grid Layout */
.availability-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 15px !important;
  padding: 20px !important;
  margin-top: 20px !important;
}

/* Day Cards */
.day-card {
  background-color: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  min-height: 150px !important;
  cursor: pointer !important;
}

/* Day Card Hover Effect */
.day-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary-color) !important;
  background-color: var(--primary-light) !important;
}

/* Day Name */
.day-card .day-name {
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  color: var(--primary-color) !important;
  margin-bottom: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

/* Status Icon */
.day-card .status-icon {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

.day-card .status-icon.available {
  color: #4CAF50 !important;
}

.day-card .status-icon.unavailable {
  color: #F44336 !important;
}

/* Time Container in Day Cards */
.day-card .time-container {
  margin-top: 15px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 5px !important;
}

/* Time Bubbles */
.day-card .time {
  background-color: var(--primary-color) !important;
  color: white !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  display: inline-block !important;
  transition: all 0.2s ease !important;
}

.day-card:hover .time {
  background-color: var(--primary-dark) !important;
  transform: scale(1.05) !important;
}

/* Player Name in Grid View */
.availability-player-name {
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  margin-bottom: 15px !important;
  color: var(--text-color) !important;
  padding: 10px !important;
  background-color: var(--secondary-color) !important;
  border-radius: 8px !important;
}

/* Hide the old table when grid view is active */
.availability-table-container.grid-view table {
  display: none !important;
}

/* Fallback styles for the existing table (when not in grid view) */
#availabilityTable td {
  position: relative;
  padding: 12px 15px;
  vertical-align: middle;
}

#availabilityTable td::before {
  content: attr(data-status);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  color: var(--accent-color);
}

#availabilityTable .time-container {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.time {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin: 2px;
}
/* Profile centering styles */
.centered-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.centered-profile .profile-avatar {
    margin-bottom: 15px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Settings container styles */
.settings-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
}

.settings-section {
    flex: 1;
    min-width: 0;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }
}

/* Light theme adjustments */
[data-theme="light"] body::before {
    opacity: 0.15; /* Lower opacity for light theme */
}

[data-theme="light"] main .container {
    background-color: rgba(244, 249, 255, 0.85);
}

/* Metallic logo text styling */
.logo span {
    background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 50%, #a9a9a9 51%, #d8d8d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

/* Add a subtle metallic shine animation with better blending */
.logo span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.02) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 15s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Adjust for light theme */
[data-theme="light"] .logo span {
    background: linear-gradient(to bottom, #5a5a5a 0%, #858585 50%, #6e6e6e 51%, #999999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.8),
        0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Metallic welcome message styling */
#homePage h1 {
    background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 50%, #a9a9a9 51%, #d8d8d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Make the orange line under the heading silver to match */
#homePage h1:after {
    background: linear-gradient(90deg, #d8d8d8, #a9a9a9);
}

/* Adjust for light theme */
[data-theme="light"] #homePage h1 {
    background: linear-gradient(to bottom, #5a5a5a 0%, #858585 50%, #6e6e6e 51%, #999999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.8),
        0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Fix for shadows interfering with header border */
.nav-links a.active {
  box-shadow: none !important; /* Remove orange shadow completely */
}

/* Alternative styling for active links that doesn't use shadows */
.nav-links a.active {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 153, 0, 0.5); /* Slightly more visible border */
  background-color: rgba(255, 153, 0, 0.15); /* Slightly more visible background */
}

/* Modification to fix header bottom line issues */
.nav-links a.active:before {
  bottom: 2px !important; /* Force override */
  height: 1px !important; /* Make line thinner */
}

/* Ensure consistent border thickness for header */
header, header.scrolled {
    border-bottom-width: 2px;
}
/* Metallic Page Titles - Add this new section */
.card h1, .card h2, main h1, main h2 {
    background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 50%, #a9a9a9 51%, #d8d8d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Adjust for light theme */
[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] main h1,
[data-theme="light"] main h2 {
    background: linear-gradient(to bottom, #5a5a5a 0%, #858585 50%, #6e6e6e 51%, #999999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 0 2px rgba(255, 255, 255, 0.8),
        0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Make sure the line under headers matches the metallic style */
.card h1:after, main h1:after {
    background: linear-gradient(90deg, #d8d8d8, #a9a9a9);
}

/* Adjust the underline for light theme */
[data-theme="light"] .card h1:after,
[data-theme="light"] main h1:after {
    background: linear-gradient(90deg, #858585, #6e6e6e);
}

/* Add a subtle shine animation to all metallic headings */
.card h1, .card h2, main h1, main h2 {
    position: relative;
    overflow: hidden;
}

.card h1:before, .card h2:before, main h1:before, main h2:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0.02) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
}
.logo img {
    height: 45px !important;
    max-width: 45px !important;
    width: auto !important;
    margin-right: 5px;
    object-fit: contain !important;
    transition: var(--transition);
    vertical-align: middle;
    border-radius: 2px;
}

header.scrolled .logo img {
    height: 25px !important;
    max-width: 25px !important;
}
/* Strategy Map Styles */
.strategy-map-container {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    background-color: #001833;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.strategy-map-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.strategy-map-tools {
    background-color: #0d2644;
    padding: 10px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #1a3b5c;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    gap: 5px;
    padding: 0 5px;
    border-right: 1px solid #1a3b5c;
}

.tool-group:last-child {
    border-right: none;
}

.tool-btn, .action-btn {
    width: 36px;
    height: 36px;
    background-color: #1a3b5c;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.tool-btn:hover, .action-btn:hover {
    background-color: #2a4b6c;
}

.tool-btn.active {
    background-color: #3498db;
}

.tool-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.color-picker {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.color-btn {
    width: 24px;
    height: 24px;
    border: 2px solid #1a3b5c;
    border-radius: 50%;
    cursor: pointer;
}

.color-btn.active {
    border-color: #ffffff;
}

.line-width {
    display: flex;
    gap: 5px;
}

.width-btn {
    width: 36px;
    height: 24px;
    background-color: #1a3b5c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.width-btn span {
    display: block;
    width: 20px;
    background-color: #ffffff;
}

.width-btn.active {
    background-color: #3498db;
}

.strategy-map-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#strategy-map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: default;
}

.save-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: #a0a0a0;
    font-size: 12px;
}

.time-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.time {
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
    color: white;
}

/* Set checkmark or X for availability cells */
[data-status="✓"]:before {
    content: "✓";
    color: #4CAF50;
    position: absolute;
    top: 5px;
    right: 5px;
}

[data-status="✗"]:before {
    content: "✗";
    color: #F44336;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Ship icons sizing */
.ship-icons img {
    width: 20px;
    height: 20px;
}
#strategyMapContainer {
    min-height: 500px;
    width: 100%;
    position: relative;
    background-color: #001833;
    border: 1px solid #0a3056;
    border-radius: 4px;
    overflow: hidden;
}

.strategy-map-canvas-container {
    height: 450px;
    position: relative;
}

.strategy-map-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #0a2340;
    border-bottom: 1px solid #0a3056;
}
.strategy-map-container {
    display: flex;
    flex-direction: column;
    background: #0a2340;
    border-radius: 5px;
    overflow: hidden;
    min-height: 600px;
}

.strategy-map-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.strategy-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #102a43;
    border-bottom: 1px solid #1f4b79;
}

.map-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-selector label {
    font-weight: bold;
    color: #ffffff;
}

.map-selector select {
    padding: 5px 10px;
    background-color: #1c3a5e;
    color: #ffffff;
    border: 1px solid #2c5282;
    border-radius: 3px;
    cursor: pointer;
}

.strategy-map-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #102a43;
    border-bottom: 1px solid #1f4b79;
}

.tool-group {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid #1f4b79;
    border-radius: 3px;
    background-color: #0f2337;
}

.tool-btn, .color-btn, .width-btn, .action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c3a5e;
    border: 1px solid #2c5282;
    border-radius: 3px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s;
}

.tool-btn:hover, .color-btn:hover, .width-btn:hover, .action-btn:hover {
    background-color: #2c5282;
}

.tool-btn.active {
    background-color: #3b82f6;
    border-color: #60a5fa;
}

.color-btn {
    position: relative;
    outline: 1px solid #ffffff;
}

.color-btn.active::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.line-width {
    display: flex;
    align-items: center;
    gap: 5px;
}

.width-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.width-btn span {
    width: 15px;
    background-color: white;
}

.width-btn.active {
    background-color: #3b82f6;
}
/* Enhanced styles for clickable event cards */
.event-card.has-strategy {
    cursor: pointer;
    position: relative;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.event-card.has-strategy:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.event-card.has-strategy::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(52, 152, 219, 0.03);
    pointer-events: none;
    z-index: -1;
}

.strategy-indicator {
    margin-top: 15px;
    padding: 8px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 0.9rem;
    color: #3498db;
    border: 1px dashed rgba(52, 152, 219, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Make sure event buttons don't trigger the card click */
.event-card button {
    position: relative;
    z-index: 10;
}

/* Style improvements for strategy page */
#fullPageStrategyMapContainer {
    transition: all 0.3s ease;
    border: 1px solid #1f4b79;
    box-shadow: 0 0 20px rgba(0, 26, 51, 0.5);
}

#backToEventButton, #saveStrategyButton {
    padding: 12px 20px;
    font-weight: 500;
}

/* Fix for edit event popup */
.modal-content {
    max-height: 90vh;
}

.modal-body {
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

#strategyMapContainer {
    min-height: 500px;
    max-height: 600px;
}

/* Fix for event buttons that might interfere with click handling */
.event-actions button,
.flex button {
    pointer-events: auto;
}

/* Add additional fixes for mobile viewport */
@media screen and (max-width: 480px) {
    /* Fix viewport content overflow */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Ensure form inputs don't overflow */
    input, select, textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Make sure event cards are fully responsive */
    .events-list {
        display: block;
    }

    .event-card {
        width: 100%;
        margin: 0 0 15px 0;
    }

    /* Ensure the hamburger menu is always visible */
    .mobile-menu-btn {
        display: flex !important;
    }

    /* Make tabs more touchable on mobile */
    .tab {
        padding: 12px 16px;
    }

    /* Prevent image overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    /* Extended time slots grid */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #1f4b79;
    border-radius: 5px;
    background-color: #0a2340;
}

.time-slot {
    padding: 8px 12px;
    text-align: center;
    font-size: 0.9rem;
}

/* Scrollbar styling for time slots */
.time-slots::-webkit-scrollbar {
    width: 8px;
}

.time-slots::-webkit-scrollbar-track {
    background: #001833;
}

.time-slots::-webkit-scrollbar-thumb {
    background: #1f4b79;
    border-radius: 4px;
}

.time-slots::-webkit-scrollbar-thumb:hover {
    background: #2a5a8a;
}
/* Day-based availability styles */
#availabilityPage .days-row,
.days-row {
    display: flex !important;
    gap: 12px !important;
    margin: 30px auto !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 10px !important;
    max-width: 100% !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

/* Force all children to be inline */
#availabilityPage .days-row > *,
.days-row > * {
    display: inline-block !important;
    vertical-align: top !important;
}

.days-row::-webkit-scrollbar {
    height: 8px !important;
}

.days-row::-webkit-scrollbar-track {
    background: #0a2340 !important;
    border-radius: 4px !important;
}

.days-row::-webkit-scrollbar-thumb {
    background: #1f4b79 !important;
    border-radius: 4px !important;
}

#availabilityPage .day-selector,
.day-selector {
    background: linear-gradient(145deg, #0f2847 0%, #1a3a5c 100%) !important;
    border: 2px solid #2a5d8f !important;
    border-radius: 16px !important;
    padding: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    min-width: 100px !important;
    position: relative !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
}

.day-selector:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4) !important;
    border-color: #4299e1 !important;
    background: linear-gradient(145deg, #1a3a5c 0%, #2a5d8f 100%) !important;
}

.day-selector.active {
    border-color: #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.day-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.day-status {
    font-size: 2rem;
    margin: 10px 0;
}

.day-status .fa-times-circle {
    color: #666;
}

.day-status .fa-check-circle {
    color: #4fc3f7;
    filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.5));
}

.day-status .fa-clock {
    color: #ffd54f;
    filter: drop-shadow(0 0 5px rgba(255, 213, 79, 0.5));
}

.day-time-preview {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Day options modal styles */
.day-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.option-btn {
    background: linear-gradient(135deg, #0a2340 0%, #0f2847 100%);
    border: 2px solid #1f4b79;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-btn:hover {
    transform: translateX(5px);
    border-color: #4299e1;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.option-btn i {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.option-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    display: block;
}

.option-btn small {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-top: 5px;
}

.option-btn.all-day i {
    color: #ffd54f;
}

.option-btn.specific-times i {
    color: #4fc3f7;
}

.option-btn.not-available i {
    color: #f44336;
}

/* Time selection controls */
.time-selection-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.time-selection-controls button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Modal improvements */
#timeSlotsModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#timeSlotsModal .modal-header {
    flex-shrink: 0;
    padding: 20px;
    border-bottom: 1px solid #1f4b79;
}

#timeSlotsModal .time-selection-controls {
    flex-shrink: 0;
    padding: 0 20px;
}

#modalTimeSlots {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 20px;
    margin: 20px;
    border: 1px solid #1f4b79;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

#modalTimeSlots::-webkit-scrollbar {
    width: 10px;
}

#modalTimeSlots::-webkit-scrollbar-track {
    background: #0a2340;
    border-radius: 5px;
}

#modalTimeSlots::-webkit-scrollbar-thumb {
    background: #1f4b79;
    border-radius: 5px;
}

#modalTimeSlots::-webkit-scrollbar-thumb:hover {
    background: #2a5d8f;
}

#timeSlotsModal .modal-footer {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #1f4b79;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Update existing schedule to be hidden by default */
.availability-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
    background: #0a1929;
    padding: 30px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1400px) {
    .availability-schedule {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .availability-schedule {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .availability-schedule {
        grid-template-columns: repeat(2, 1fr);
    }
}

.day-availability {
    border: 2px solid #1f4b79;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a2340 0%, #0f2847 100%);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: fit-content;
}

.day-availability:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: #2a5d8f;
}

.day-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    background: rgba(15, 40, 71, 0.5);
    border-bottom: 1px solid rgba(31, 75, 121, 0.3);
}

.day-header:hover {
    background-color: rgba(15, 45, 77, 0.8);
}

.day-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4299e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-chevron {
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.day-summary {
    font-size: 0.85rem;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.day-summary.available {
    color: #4fc3f7;
    font-weight: 600;
    background: rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.3);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

.day-content {
    padding: 15px;
    border-top: 1px solid #1f4b79;
    background-color: #001833;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.time-slots-grid .time-slot {
    padding: 8px 12px;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #1f4b79;
    border-radius: 5px;
    background-color: #0a2340;
    transition: all 0.3s;
}

.time-slots-grid .time-slot:hover {
    background-color: #0f2d4d;
    border-color: #2a5a8a;
}

.time-slots-grid .time-slot.selected {
    background-color: #4fc3f7;
    color: #001833;
    border-color: #4fc3f7;
}

/* Scrollbar for time slots grid */
.time-slots-grid::-webkit-scrollbar {
    width: 8px;
}

.time-slots-grid::-webkit-scrollbar-track {
    background: #001833;
}

.time-slots-grid::-webkit-scrollbar-thumb {
    background: #1f4b79;
    border-radius: 4px;
}

.time-slots-grid::-webkit-scrollbar-thumb:hover {
    background: #2a5a8a;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover .profile-upload-overlay {
    display: flex !important;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;

/* Range selection styles */
.time-slot.range-selecting {
    background-color: #ff9800 !important;
    color: white !important;
    transform: scale(1.05);
}

.time-slot.range-hover {
    background-color: rgba(255, 152, 0, 0.3) !important;
    border-color: #ff9800 !important;
}

.time-slot.selected.range-hover {
    background-color: rgba(255, 152, 0, 0.5) !important;
}

/* Prevent text selection during range selection */
.time-slots-grid {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Strategy Archive Styles */
.strategies-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .strategies-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .strategies-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        gap: 15px !important;
        padding: 10px !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .strategies-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .strategies-grid .strategy-item {
        flex: 0 0 200px !important;
        min-width: 200px !important;
    }
}

.strategy-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.strategy-item:hover {
    background: var(--card-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.strategy-thumbnail {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
}

.strategy-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
}

.strategy-date {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* Maps Grid */
div.maps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

#archiveMaps.maps-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    .maps-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .maps-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        gap: 15px !important;
        padding: 10px !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .maps-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .maps-grid .map-item {
        flex: 0 0 180px !important;
        min-width: 180px !important;
    }
}

.map-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-item:hover {
    background: var(--card-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.map-thumbnail {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
}

.map-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9em;
    text-align: center;
    margin-top: 5px;
    width: 100%;
    display: block;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    margin: 20px auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Fade effect at top and bottom of modal content */
.modal-content::before,
.modal-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    z-index: 10;
}

.modal-content::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        var(--card-bg-color) 0%,
        transparent 100%
    );
}

.modal-content::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        var(--card-bg-color) 0%,
        transparent 100%
    );
}

/* Hide scrollbar for modal content while keeping functionality */
.modal-content::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

.modal-content::-webkit-scrollbar-track {
    display: none !important;
}

.modal-content::-webkit-scrollbar-thumb {
    display: none !important;
}

/* For Firefox */
.modal-content {
    scrollbar-width: none !important;
}

/* For Internet Explorer and Edge */
.modal-content {
    -ms-overflow-style: none !important;
}

/* Map Selection Modal specific styles */
#mapSelectionModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Additional override for modal content */
#mapSelectionModal .modal-content {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    max-height: 50vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: none !important;
    margin: 10vh auto;
}

#mapSelectionModal .modal-content::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Lock indicator */
.strategy-locked {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
}

.strategy-unlocked {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
}

/* Archive Specific Styles */
#archiveMaps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

#archivePage #archiveMaps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
    #archiveMaps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #archiveMaps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #archiveMaps {
        grid-template-columns: 1fr;
    }
}

#archiveMaps .map-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

#archiveMaps .map-item:hover {
    background: var(--card-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#archiveMaps .map-thumbnail {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    background-color: #1a3a52;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: block;
}

#archiveMaps .map-item:hover .map-thumbnail {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

#archiveMaps .map-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9em;
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Map Selection Modal Grid */
#mapSelectionModal .maps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}


@media (max-width: 768px) {
    #mapSelectionModal .maps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    #mapSelectionModal .maps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#mapSelectionModal .map-item {
    background: var(--card-bg-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 120px;
    box-sizing: border-box;
}

#mapSelectionModal .map-item:hover {
    background: var(--card-hover-color);
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

#mapSelectionModal .map-thumbnail {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-bottom: 8px;
    background-color: #1a3a52;
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    pointer-events: none;
}

#mapSelectionModal .map-item:hover .map-thumbnail {
    border-color: var(--accent-color);
}

#mapSelectionModal .map-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.85em;
    word-wrap: break-word;
    text-align: center;
    width: 100%;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

/* User Strategies in Profile */
#userStrategies .strategies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    #userStrategies .strategies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #userStrategies .strategies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #userStrategies .strategies-grid {
        grid-template-columns: 1fr;
    }
}

#userStrategies .strategy-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#userStrategies .strategy-item:hover {
    background: var(--card-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#userStrategies .strategy-thumbnail {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-bottom: 15px;
    background-color: #1a3a52;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

#userStrategies .strategy-item:hover .strategy-thumbnail {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* Users Grid for Archive */
.users-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .users-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .users-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        gap: 15px !important;
        padding: 10px !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .users-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .users-grid .user-item {
        flex: 0 0 200px !important;
        min-width: 200px !important;
    }
}

.user-item {
    background: var(--card-bg-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-item:hover {
    background: var(--card-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #2a4a6a;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
}

.user-item:hover .user-avatar {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.strategy-count {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* Strategy name styles */
.strategy-name {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-color);
    margin: 10px 0 5px 0;
    line-height: 1.3;
    min-height: 1.3em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.strategy-date {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.strategy-locked {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Form input styles for modals */
.form-input {
    width: 100%;
    padding: 10px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* OVERRIDE: Force horizontal layout for availability days */
#availabilityPage .days-row,
.days-row#daysRow {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    align-items: center !important;
}

#availabilityPage .day-selector,
.days-row#daysRow .day-selector {
    display: inline-block !important;
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    height: auto !important;
    flex: 0 0 auto !important;
    background: linear-gradient(145deg, #1a3a5c 0%, #2a5d8f 100%) !important;
    border: 3px solid #4299e1 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3) !important;
    transition: all 0.4s ease !important;
    margin: 0 !important;
    vertical-align: top !important;
}

#availabilityPage .day-selector:hover {
    transform: translateY(-8px) scale(1.08) !important;
    box-shadow: 0 12px 35px rgba(79, 195, 247, 0.5) !important;
    border-color: #4fc3f7 !important;
    background: linear-gradient(145deg, #2a5d8f 0%, #3a7dbf 100%) !important;
}

#availabilityPage .day-selector .day-name {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #4fc3f7 !important;
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.7) !important;
    letter-spacing: 2px !important;
}

#availabilityPage .day-selector .day-status {
    font-size: 2.5rem !important;
    margin: 15px 0 !important;
}

#availabilityPage .day-selector .day-time-preview {
    font-size: 0.9rem !important;
    color: #a0d4f5 !important;
    text-align: center !important;
}

/* Modern Modal Styles */
.modal {
    backdrop-filter: blur(10px) !important;
    background: rgba(0, 0, 0, 0.85) !important;
}

.modal-content {
    background: linear-gradient(145deg, #0f2847 0%, #1a3a5c 100%) !important;
    border: 2px solid #2a5d8f !important;
    border-radius: 25px !important;
    padding: 40px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(66, 153, 225, 0.3) !important;
    max-width: 95% !important;
    width: 900px !important;
    animation: modalSlideIn 0.4s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #4fc3f7 !important;
    font-size: 2rem !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5) !important;
}

.modal-content .close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    font-size: 2rem !important;
    color: #4fc3f7 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.modal-content .close-modal:hover {
    background: rgba(79, 195, 247, 0.2) !important;
    transform: rotate(90deg) !important;
    color: #fff !important;
}

/* Time slots in modal */
#modalTimeSlots {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 20px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding: 15px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 15px !important;
}

#modalTimeSlots .time-slot {
    padding: 12px 8px !important;
    background: linear-gradient(145deg, #1a3a5c 0%, #2a5d8f 100%) !important;
    border: 2px solid #2a5d8f !important;
    border-radius: 12px !important;
    color: #a0d4f5 !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#modalTimeSlots .time-slot:hover {
    background: linear-gradient(145deg, #2a5d8f 0%, #3a7dbf 100%) !important;
    border-color: #4299e1 !important;
    transform: scale(1.05) !important;
    color: #fff !important;
}

#modalTimeSlots .time-slot.selected {
    background: linear-gradient(145deg, #4299e1 0%, #4fc3f7 100%) !important;
    border-color: #4fc3f7 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.5) !important;
}

/* Buttons in modals */
.modal-content button {
    background: linear-gradient(145deg, #4299e1 0%, #4fc3f7 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 10px !important;
    box-shadow: 0 5px 20px rgba(66, 153, 225, 0.4) !important;
}

.modal-content button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(79, 195, 247, 0.6) !important;
}

.modal-content button.secondary {
    background: linear-gradient(145deg, #2a5d8f 0%, #1a3a5c 100%) !important;
}

/* Ensure parent containers don't break the layout */
#availabilityPage .card {
    overflow-x: visible !important;
    background: linear-gradient(145deg, #0f2847 0%, #1a3a5c 100%) !important;
    border: 2px solid #2a5d8f !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #availabilityPage .day-selector {
        flex: 0 1 calc(20% - 15px) !important;
    }
}

@media (max-width: 992px) {
    #availabilityPage .day-selector {
        flex: 0 1 calc(25% - 15px) !important;
    }
}

@media (max-width: 768px) {
    #availabilityPage .day-selector {
        flex: 0 1 calc(33.33% - 15px) !important;
    }
}

@media (max-width: 576px) {
    #availabilityPage .day-selector {
        flex: 0 1 calc(50% - 15px) !important;
    }
}

/* ULTRA OVERRIDE - Fix availability days layout and styling */
div#availabilityPage div.days-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    padding: 30px !important;
    justify-content: center !important;
    overflow-x: auto !important;
}

div#availabilityPage div.days-row > div.day-selector {
    display: inline-block !important;
    width: 140px !important;
    min-width: 140px !important;
    background: linear-gradient(145deg, #1a3a5c 0%, #2a5d8f 100%) !important;
    border: 3px solid #4299e1 !important;
    border-radius: 20px !important;
    padding: 25px 20px !important;
    box-shadow: 0 10px 30px rgba(66, 153, 225, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

div#availabilityPage div.days-row > div.day-selector::before {
    content: "" !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.3) 0%, transparent 70%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

div#availabilityPage div.days-row > div.day-selector:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(79, 195, 247, 0.6) !important;
    border-color: #4fc3f7 !important;
    background: linear-gradient(145deg, #2a5d8f 0%, #3a7dbf 100%) !important;
}

div#availabilityPage div.days-row > div.day-selector:hover::before {
    opacity: 1 !important;
}

div#availabilityPage div.day-selector .day-name {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #4fc3f7 !important;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.8) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    margin-bottom: 15px !important;
}

div#availabilityPage div.day-selector .day-status {
    font-size: 2.8rem !important;
    margin: 20px 0 !important;
    filter: drop-shadow(0 0 10px currentColor) !important;
}

div#availabilityPage div.day-selector .day-status .fa-check-circle {
    color: #4fc3f7 !important;
    animation: pulse 2s infinite !important;
}

div#availabilityPage div.day-selector .day-status .fa-times-circle {
    color: #667 !important;
    opacity: 0.6 !important;
}

div#availabilityPage div.day-selector .day-time-preview {
    font-size: 0.95rem !important;
    color: #a0d4f5 !important;
    text-align: center !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* ABSOLUTE FINAL OVERRIDE - Force horizontal layout */
#daysRow,
.days-row,
#availabilityPage .days-row,
div#availabilityPage div#daysRow {
    display: flex \!important;
    flex-direction: row \!important;
    flex-wrap: nowrap \!important;
    width: 100% \!important;
    gap: 20px \!important;
    padding: 30px 10px \!important;
    justify-content: center \!important;
    overflow-x: auto \!important;
    overflow-y: visible \!important;
    align-items: stretch \!important;
    min-height: 200px \!important;
}

#daysRow > *,
.days-row > *,
#availabilityPage .days-row > *,
div#availabilityPage div#daysRow > * {
    flex: 0 0 140px \!important;
    display: block \!important;
    float: none \!important;
}

/* Use attribute selector for maximum specificity */
[id="availabilityPage"] [class="days-row"] {
    display: flex \!important;
    flex-direction: row \!important;
}

[id="availabilityPage"] [class*="day-selector"] {
    display: block \!important;
    flex: 0 0 140px \!important;
}


/* FINAL DEFINITIVE AVAILABILITY STYLES - DESKTOP */
@media screen and (min-width: 769px) {
    #availabilityPage .days-row,
    div[id="daysRow"] {
        display: flex \!important;
        flex-direction: row \!important;
        flex-wrap: nowrap \!important;
        gap: 15px \!important;
        padding: 20px \!important;
        justify-content: center \!important;
        align-items: center \!important;
        overflow-x: auto \!important;
        width: 100% \!important;
        box-sizing: border-box \!important;
    }
    
    #availabilityPage .day-selector,
    div[id="daysRow"] > div {
        display: block \!important;
        flex: 0 0 auto \!important;
        width: 140px \!important;
        min-width: 140px \!important;
        max-width: 140px \!important;
        height: auto \!important;
        min-height: 180px \!important;
        background: linear-gradient(145deg, #1a3a5c 0%, #2a5d8f 100%) \!important;
        border: 3px solid #4299e1 \!important;
        border-radius: 20px \!important;
        padding: 25px 15px \!important;
        box-shadow: 0 10px 30px rgba(66, 153, 225, 0.4) \!important;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) \!important;
        cursor: pointer \!important;
        position: relative \!important;
        margin: 0 \!important;
        text-align: center \!important;
    }
    
    #availabilityPage .day-selector:hover,
    div[id="daysRow"] > div:hover {
        transform: translateY(-10px) scale(1.05) \!important;
        box-shadow: 0 15px 40px rgba(79, 195, 247, 0.6) \!important;
        border-color: #4fc3f7 \!important;
        background: linear-gradient(145deg, #2a5d8f 0%, #3a7dbf 100%) \!important;
    }
    
    #availabilityPage .day-name,
    div[id="daysRow"] .day-name {
        font-size: 1.4rem \!important;
        font-weight: 800 \!important;
        color: #4fc3f7 \!important;
        text-shadow: 0 0 20px rgba(79, 195, 247, 0.8) \!important;
        margin-bottom: 10px \!important;
    }
    
    #availabilityPage .day-status,
    div[id="daysRow"] .day-status {
        font-size: 2.5rem \!important;
        margin: 15px 0 \!important;
    }
    
    #availabilityPage .day-status i,
    div[id="daysRow"] .day-status i {
        filter: drop-shadow(0 0 10px currentColor) \!important;
    }
    
    #availabilityPage .day-time-preview,
    div[id="daysRow"] .day-time-preview {
        font-size: 0.9rem \!important;
        color: #a0d4f5 \!important;
    }
}
EOF < /dev/null


/* ==================== Modern Theme Styles ==================== */

/* Modern Theme CSS Variables */
body.modern-theme {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --secondary-color: #4f46e5;
    --accent-color: #ec4899;
    --accent-secondary: #f472b6;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --background-color: #0a0a0a;
    --card-bg-color: rgba(17, 24, 39, 0.8);
    --card-hover-color: rgba(31, 41, 55, 0.9);
    --dropdown-bg-color: rgba(17, 24, 39, 0.95);
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --border-color: rgba(75, 85, 99, 0.3);
    --input-bg-color: rgba(17, 24, 39, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Animated Background - Ensure it's properly layered */
body.modern-theme {
    background-color: var(--background-color);
    position: relative;
    min-height: 100vh;
}

/* Hide the original background image when modern theme is active */
body.modern-theme::before {
    display: none !important;
}

/* Animated Background Container */
body.modern-theme .animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Above body background but below content */
    overflow: hidden;
    pointer-events: none;
    background-color: #0a0a0a; /* Direct color instead of variable */
}

/* Gradient Spheres */
body.modern-theme .gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px); /* Reduced blur to make more visible */
    opacity: 0.8; /* Increased opacity */
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

/* Sphere 1 - Purple to Pink gradient */
body.modern-theme .sphere-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

/* Sphere 2 - Blue to Green gradient */
body.modern-theme .sphere-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

/* Sphere 3 - Orange to Red gradient */
body.modern-theme .sphere-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

/* The floating animation */
@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    25% { 
        transform: translate(100px, -100px) scale(1.1);
    }
    50% { 
        transform: translate(-100px, 100px) scale(0.9);
    }
    75% { 
        transform: translate(50px, 50px) scale(1.05);
    }
}

/* Modern Theme Cards and Components */
body.modern-theme .card {
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

body.modern-theme .card:hover {
    background: var(--card-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* Modern Theme Buttons */
body.modern-theme .btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

body.modern-theme .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* Modern Theme Form Inputs */
body.modern-theme input,
body.modern-theme select,
body.modern-theme textarea {
    background-color: var(--input-bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

body.modern-theme input:focus,
body.modern-theme select:focus,
body.modern-theme textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Ensure proper stacking context */
body.modern-theme > *:not(.animated-bg) {
    position: relative;
    z-index: 1;
}

/* Header adjustments for modern theme */
body.modern-theme header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* Responsive adjustments for animated background */
@media (max-width: 768px) {
    body.modern-theme .sphere-1 {
        width: 400px;
        height: 400px;
    }
    
    body.modern-theme .sphere-2 {
        width: 300px;
        height: 300px;
    }
    
    body.modern-theme .sphere-3 {
        width: 350px;
        height: 350px;
    }
}



/* Ensure proper stacking context for modern theme */
body.modern-theme header,
body.modern-theme main,
body.modern-theme .container,
body.modern-theme .card,
body.modern-theme .page,
body.modern-theme .modal {
    position: relative;
    z-index: 2;
}

/* Make sure animated background stays behind everything */
body.modern-theme .animated-bg {
    z-index: -1 \!important;
}



/* TEST - Make spheres more visible for debugging */
body.modern-theme .sphere-1 {
    background: red \!important;
    filter: blur(20px) \!important;
    opacity: 1 \!important;
    z-index: 1 \!important;
}



/* WORKING ANIMATED BACKGROUND - CLEAN VERSION */
body.modern-theme {
    background: #0a0a0a \!important;
}

body.modern-theme .animated-bg {
    position: fixed \!important;
    top: 0 \!important;
    left: 0 \!important;
    right: 0 \!important;
    bottom: 0 \!important;
    width: 100vw \!important;
    height: 100vh \!important;
    overflow: hidden \!important;
    z-index: 1 \!important;
    pointer-events: none \!important;
}

body.modern-theme .gradient-sphere {
    position: absolute \!important;
    border-radius: 50% \!important;
    filter: blur(60px) \!important;
}

body.modern-theme .sphere-1 {
    width: 500px \!important;
    height: 500px \!important;
    background: #6366f1 \!important;
    top: -200px \!important;
    left: -200px \!important;
    opacity: 0.6 \!important;
}

body.modern-theme .sphere-2 {
    width: 400px \!important;
    height: 400px \!important;
    background: #ec4899 \!important;
    bottom: -200px \!important;
    right: -200px \!important;
    opacity: 0.6 \!important;
}

body.modern-theme .sphere-3 {
    width: 300px \!important;
    height: 300px \!important;
    background: #10b981 \!important;
    top: 50% \!important;
    left: 50% \!important;
    transform: translate(-50%, -50%) \!important;
    opacity: 0.6 \!important;
}

/* Ensure all content is above the background */
body.modern-theme > *:not(.animated-bg) {
    position: relative \!important;
    z-index: 10 \!important;
}

body.modern-theme .container {
    position: relative \!important;
    z-index: 10 \!important;
    background: transparent \!important;
}

