/**
 * Custom Additional Styles
 */


/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Horse Card Styles */
.horse-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.horse-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.horse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.horse-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.horse-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.horse-meta-item {
    display: flex;
    flex-direction: column;
}

.horse-meta-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.horse-meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.horse-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.rating-flat {
    background-color: #e3f2fd;
    color: #1976d2;
}

.rating-awt {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.rating-chase {
    background-color: #fff3e0;
    color: #e65100;
}

.rating-hurdle {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.rating-label {
    font-weight: 500;
}

.rating-value {
    font-weight: 700;
}

.no-ratings {
    color: var(--color-text-light);
    font-style: italic;
}

/* Watch List Button */
.watch-list-button {
    position: relative;
    padding-left: 40px;
}

.watch-list-button::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat center;
    background-size: contain;
}

.watch-list-button.active {
    background-color: var(--color-danger);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--color-border);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 20px;
    margin-bottom: 20px;
    background: var(--color-light);
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 0.875rem;
}

/* Widgets */
.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-title {
    color: var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.entry-meta a {
    color: var(--color-text-light);
}

.entry-meta a:hover {
    color: var(--color-primary);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: var(--color-primary);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Horse Search Page */
.horse-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-field-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.horse-search-input {
    flex: 1;
    min-width: 300px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 4px;
}

.horse-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.results-count {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.search-results-info {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Horses Grid */
.horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.horse-year {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-light);
    border-radius: 3px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-left: 10px;
}

/* Watch List Toggle Button */
.watch-list-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide any text or SVG inside the button */
.watch-list-toggle span,
.watch-list-toggle svg {
    display: none;
}

.watch-list-toggle::before {
    content: '';
    width: 37px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path><line x1="12" y1="9" x2="12" y2="15"></line><line x1="9" y1="12" x2="15" y2="12"></line></svg>') no-repeat center;
    background-size: contain;
}

.watch-list-toggle:hover {
    background-color: var(--color-secondary);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.watch-list-toggle.active {
    background-color: var(--color-danger);
}

.watch-list-toggle.active::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path><line x1="9" y1="12" x2="15" y2="12" stroke="white" stroke-width="2"></line></svg>') no-repeat center;
}

.watch-list-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Watch List Page */
.watchlist-actions {
    margin-bottom: 30px;
}

.watchlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.watchlist-empty svg {
    margin: 0 auto 20px;
    opacity: 0.3;
}

.watchlist-empty h2 {
    color: var(--color-text);
    margin-bottom: 10px;
}

.watchlist-empty p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.watchlist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a21 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-note {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 5px;
}

.watchlist-horses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.watchlist-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 5px;
}


.coming-soon {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.remove-from-watchlist {
    background-color: var(--color-danger);
}

.remove-from-watchlist:hover {
    background-color: #c82333;
}

/* Ratings Section */
.horse-ratings-section {
    margin-top: 15px;
}

.ratings-title {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}






/* Upcoming Races Styling */
.horse-upcoming-races {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

.horse-upcoming-races h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.no-races {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.races-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.race-item {
    background: var(--color-light);
    border-left: 3px solid var(--color-accent);
    padding: 12px;
    border-radius: 4px;
    transition: var(--transition);
}





.race-item.race-urgent {
    border-left: 4px solid var(--color-danger);
    background-color: #fff5f5;
}

.race-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.race-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.race-date {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.race-time {
    background: var(--color-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    /* font-size: 0.85rem; */
    font-weight: 600;
}

.race-course {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.race-details {
    padding-left: 10px;
}

.race-name {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.race-name a {
    color: var(--color-text);
    text-decoration: none;
}

.race-name a:hover {
    color: var(--color-primary);
}

.race-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.race-distance,
.race-class,
.race-type {
    display: inline-block;
    padding: 3px 8px;
    background: white;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.race-jockey,
.race-number {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.race-jockey strong,
.race-number strong {
    color: var(--color-text);
}

/* ===================================
   PHASE 2: FIXTURES & RACES STYLES
   =================================== */

/* Fixtures Listing Page */
.fixtures-page .page-header {
    text-align: center;
    margin-bottom: 30px;
}

.fixtures-filters {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 5px;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
}

.fixtures-results-info {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.fixtures-by-date {
    margin-top: 30px;
}

.fixtures-date-group {
    margin-bottom: 40px;
}

.fixtures-date-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-accent);
}

.fixtures-count {
    color: var(--color-text-light);
    font-size: 1.2rem;
    font-weight: 400;
}

.fixtures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.fixture-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.fixture-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fixture-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--color-primary), #1a4024);
}

.fixture-course-name {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

.fixture-course-name a {
    color: #fff;
    text-decoration: none;
}

.fixture-course-name a:hover {
    text-decoration: underline;
}

.fixture-type-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fixture-type-flat {
    background: #4CAF50;
    color: #fff;
}

.fixture-type-jump {
    background: #FF9800;
    color: #fff;
}

.fixture-card-body {
    padding: 15px 20px;
}

.fixture-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.fixture-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text);
    font-size: 0.9rem;
}

.fixture-meta-item svg {
    color: var(--color-primary);
}

.fixture-going,
.fixture-weather {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

.fixture-watched-horses {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--color-accent);
}

.fixture-watched-horses .watched-heart-icon {
    flex-shrink: 0;
    color: var(--color-accent);
}

.fixture-watched-horses span {
    line-height: 1.3;
}

.fixture-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
}

.no-fixtures-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.no-fixtures-found svg {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.no-fixtures-found h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-text);
}

.no-fixtures-found p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Fixture Detail Page */
.fixture-detail-page {
    max-width: 1200px;
    margin: 0 auto;
}

.fixture-breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.fixture-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.fixture-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
}

.fixture-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.fixture-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0;
}

.fixture-detail-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.fixture-date {
    font-size: 1.1rem;
    color: var(--color-text);
}

.fixture-info-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}



.fixture-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 30px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Mobile: Single column */
@media (max-width: 768px) {
    .fixture-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}






.watched-horses-notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--color-accent);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.watched-horses-notice svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.races-section {
    margin-top: 40px;
}


.race-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.race-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.race-card.has-watched-horses {
    border-left: 4px solid var(--color-accent);
    background: rgba(212, 175, 55, 0.03);
}

.race-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.race-time-info {
    display: flex;
    align-items: center;
    gap: 12px;
}



.race-countdown {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.race-countdown.race-imminent {
    background: #ff4444;
    color: #fff;
}

.race-countdown.race-today {
    background: #ff9800;
    color: #fff;
}

.race-countdown.race-upcoming {
    background: #e8f5e9;
    color: #2e7d32;
}

.race-countdown.race-past {
    background: #f5f5f5;
    color: #999;
}

.watched-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-accent);
}




.race-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.race-detail-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f5f5f5;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.race-detail-badge svg {
    width: 14px;
    height: 14px;
}

.race-detail-badge.race-type-flat {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.race-detail-badge.race-type-jump {
    background: rgba(255, 152, 0, 0.15);
    color: #e65100;
}

.race-detail-badge.race-prize {
    background: rgba(212, 175, 55, 0.15);
    color: #b8860b;
}

.race-going {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
}

.race-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}

/* Race Detail Page */
.race-detail-page {
    max-width: 1400px;
    margin: 0 auto;
}

.race-breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.race-breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.race-breadcrumb a:hover {
    text-decoration: underline;
}

.race-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.race-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0;
}

.race-detail-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.race-course,
.race-date {
    font-size: 1rem;
    color: var(--color-text);
}

.race-info-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.race-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-notice {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.info-notice svg {
    color: #2196F3;
    flex-shrink: 0;
}

.runners-section {
    margin-top: 40px;
}

.runners-legend {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 15px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.legend-item svg {
    color: var(--color-accent);
}

.no-runners-found {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.no-runners-found svg {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.no-runners-found p {
    color: var(--color-text-light);
}

/* Runners Table (Desktop) */
.runners-table-container {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.runners-table {
    width: 100%;
    border-collapse: collapse;
}

.runners-table thead {
    background: linear-gradient(135deg, var(--color-primary), #1a4024);
}

.runners-table th {
    padding: 15px 12px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.runners-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--color-border);
}

.runner-row:hover {
    background: rgba(44, 85, 48, 0.05);
}

.runner-row.is-watched {
    background: rgba(212, 175, 55, 0.08);
}

.runner-row.is-non-runner {
    opacity: 0.5;
    text-decoration: line-through;
}

.runner-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    min-width: 40px;
}

.runner-horse {
    font-weight: 600;
}

.horse-link {
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.horse-link:hover {
    color: var(--color-primary);
}

.watched-icon {
    color: var(--color-accent);
}

.horse-age {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-left: 5px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-runner {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.status-badge.status-non-runner {
    background: rgba(244, 67, 54, 0.15);
    color: #c62828;
}

.button-small {
    /* padding: 6px 12px; */
    font-size: 0.85rem;
}

/* Runners Cards (Mobile) */
.runners-cards {
    display: none;
}

.runner-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.runner-card.is-watched {
    border-left: 4px solid var(--color-accent);
    background: rgba(212, 175, 55, 0.05);
}

.runner-card.is-non-runner {
    opacity: 0.5;
}

.runner-card .runner-number {
    flex-shrink: 0;
}

.runner-card .cloth-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    color: var(--color-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.runner-card .runner-horse {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
}















.runner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}



.runner-info-row {
    display: flex;
    justify-content: space-between;
    /* margin-bottom: 8px; */
    font-size: 0.9rem;
}

.runner-label {
    color: var(--color-text-light);
}

.runner-value {
    font-weight: 600;
    color: var(--color-text);
}

.runner-card-footer {
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.button-block {
    width: 100%;
    text-align: center;
}

/* Enhanced Watch List Styles */
.races-list-grouped {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.races-time-group {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
}

.time-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}


.race-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

/* Desktop/Mobile Toggle */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}








/* ===================================
   Horse Detail Page Styles
   =================================== */

/* Horse Detail Page Layout */
.horse-detail-page {
    padding: 20px 0;
}

.horse-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--color-primary);
    flex-wrap: wrap;
}

.horse-detail-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.horse-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.horse-year-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-accent), #b8932a);
    color: #fff;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-source-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-source-complete {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
}

.data-source-partial {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #333;
}

.horse-detail-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Button Styles */
.button-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-icon {
    flex-shrink: 0;
}

.button-text {
    font-weight: 600;
}

/* Horse Detail Grid Layout */
.horse-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.horse-detail-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.horse-detail-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Horse Info Cards */
.horse-info-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.race-count {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

/* Horse Info Grid */
.horse-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.info-notice {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
}

.info-notice svg {
    flex-shrink: 0;
    color: #ffc107;
}

/* Rating History Table */
.rating-history-table {
    overflow-x: auto;
}

.rating-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.rating-history-table thead {
    background: linear-gradient(135deg, var(--color-primary), #1a4024);
}

.rating-history-table th {
    padding: 12px 15px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-history-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
}

.rating-history-table tbody tr:hover {
    background: rgba(44, 85, 48, 0.05);
}

.rating-history-table tbody tr:last-child td {
    border-bottom: none;
}

.rating-date {
    font-weight: 600;
    color: var(--color-text);
}

/* Upcoming Races Card */
.upcoming-races-card {
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
}

.no-upcoming-races {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
}

.no-upcoming-races svg {
    margin: 0 auto 15px;
    opacity: 0.4;
}

.no-upcoming-races p {
    font-size: 0.95rem;
    margin: 0;
}

/* Upcoming Races List */
.upcoming-races-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upcoming-race-item {
    padding: 15px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    transition: var(--transition);
}

.upcoming-race-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
}

.race-date-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.race-countdown {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.race-countdown.race-imminent {
    background: #dc3545;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.race-countdown.race-today {
    background: #ffc107;
    color: #333;
}

.race-countdown.race-upcoming {
    background: #28a745;
    color: white;
}

.race-countdown.race-past {
    background: #6c757d;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.race-venue {
    margin-bottom: 8px;
}

.race-venue strong {
    color: var(--color-text);
    font-size: 1.05rem;
}


.race-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.race-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--color-light);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.race-detail-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.race-type-flat {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.race-type-chase {
    background: #fff3e0;
    color: #e65100;
    border-color: #e65100;
}

.race-type-hurdle {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.race-type-nhf {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #7b1fa2;
}

.race-participant {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    gap: 8px;
}

.participant-label {
    color: var(--color-text-light);
    font-weight: 500;
}

.participant-name {
    color: var(--color-text);
    font-weight: 600;
}

.race-form {
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.form-label {
    color: var(--color-text-light);
    font-weight: 500;
}

.form-figures {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}






/* Race Runners Toggle Button */
.race-runners-toggle {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.race-runners-toggle:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.race-runners-toggle.active {
    background-color: var(--color-secondary);
}

.race-runners-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

/* Race Runners Section */
.race-runners-section {
    padding: 20px;
    background-color: #f9fafb;
    border-top: 2px solid #e5e7eb;
    margin-top: 15px;
}

.race-runners-section .runners-table {
    margin-bottom: 0;
}

.race-runners-section .no-runners {
    text-align: center;
    padding: 30px;
    color: #6b7280;
    font-style: italic;
}

/* Desktop Table Styles */
.race-runners-list {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.race-runners-list thead {
    background-color: var(--color-primary);
    color: white;
}

.race-runners-list th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.race-runners-list tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.race-runners-list tbody tr:hover {
    background-color: #f9fafb;
}

.race-runners-list tbody tr.is-watched {
    background-color: rgba(212, 175, 55, 0.08);
}

.race-runners-list tbody tr.is-non-runner {
    opacity: 0.6;
    text-decoration: line-through;
}

.race-runners-list td {
    padding: 12px 8px;
    font-size: 14px;
}

.race-runners-list .runner-number {
    text-align: center;
    font-weight: 700;
    width: 50px;
}

.race-runners-list .cloth-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 13px;
}

.race-runners-list .runner-horse {
    font-weight: 600;
}

.race-runners-list .horse-link {
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.race-runners-list .horse-link:hover {
    text-decoration: underline;
}

.race-runners-list .watched-icon {
    color: #dc2626;
    flex-shrink: 0;
}

.race-runners-list .horse-age {
    color: #6b7280;
    font-size: 12px;
    margin-left: 5px;
}

/* Mobile Card View */
.runners-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.runner-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* margin-bottom: 12px; */
}

.runner-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.runner-label {
    color: #6b7280;
    font-weight: 500;
}

.runner-value {
    font-weight: 600;
    color: #1f2937;
}

.runner-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}









/* Race Tabs Styling */
.race-tabs-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.race-tabs-nav {
    display: flex;
    gap: 0;
    background-color: var(--color-light);
    border-bottom: 3px solid var(--color-primary);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-light);
}

.race-tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.race-tabs-nav::-webkit-scrollbar-track {
    background: var(--color-light);
}

.race-tabs-nav::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.race-tab {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 15px 20px;
    background: white;
    border: none;
    border-right: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.race-tab:last-child {
    border-right: none;
}

.race-tab:hover {
    background-color: #f9fafb;
}

.race-tab.active {
    background-color: var(--color-primary);
    color: white;
}

.race-tab.active .tab-time,
.race-tab.active .tab-distance {
    color: white;
}

.tab-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.tab-distance {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.tab-watch-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--color-danger);
}

.race-tab.active .tab-watch-icon {
    color: var(--color-secondary);
}

/* Race Tab Panels */
.race-tabs-content {
    position: relative;
}

.race-tab-panel {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.race-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Race Info Header */
.race-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* margin-bottom: 20px; */
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.race-title-section {
    flex: 1;
}

.race-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 10px 0;
}

.race-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.race-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.race-tag.race-class {
    background-color: #e3f2fd;
    color: #1976d2;
}

.race-tag.race-type {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.race-key-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.race-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.info-icon {
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
    border: 1px solid var(--color-border);
}

.info-badge strong {
    margin-right: 5px;
}

.info-badge.info-prize {
    border-color: var(--color-secondary);
    background-color: #fffbeb;
}

/* Runners Display */
.race-runners-display {
    margin-top: 20px;
}

.runners-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.runners-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.runners-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .race-tab {
        min-width: 100px;
        padding: 12px 15px;
    }
    
    .tab-time {
        font-size: 1rem;
    }
    
    .tab-distance {
        font-size: 0.8rem;
    }
    
    .race-tab-panel {
        padding: 20px 15px;
    }
    
    .race-info-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .race-key-info {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .race-title {
        font-size: 1.25rem;
    }
    
    .race-additional-info {
        flex-direction: column;
        gap: 8px;
    }
}




/* Race Additional Info with Icons */
.race-additional-info {
    /* display: flex; 
    flex-wrap: wrap;
    gap: 12px;*/
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
}

.race-additional-info .info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    font-size: 14px;
    cursor: help;
    transition: all 0.2s ease;
}

.race-additional-info .info-badge:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.race-additional-info .info-badge svg {
    flex-shrink: 0;
    color: var(--color-primary);
}


















/* Responsive adjustments */
@media (max-width: 768px) {


    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .race-runners-section {
        padding: 15px;
    }



    .horses-grid,
    .watchlist-horses {
        grid-template-columns: 1fr;
    }
    
    .search-field-wrapper {
        flex-direction: column;
    }
    
    .horse-search-input {
        min-width: 100%;
    }
    
    .watch-list-toggle {
        width: 37px;
        margin-top: 10px;
    }
    
    /* Phase 2 Mobile Styles */
    .fixtures-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .fixture-detail-title,
    .race-detail-title {
        font-size: 1.75rem;
    }
    
    .fixture-detail-meta,
    .race-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .fixture-info-grid,
    .race-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Hide desktop table, show mobile cards */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .race-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .race-time-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .race-details-grid {
        flex-direction: column;
        gap: 8px;
    }
    
    .watchlist-stats {
        grid-template-columns: 1fr;
    }
    
    .races-time-group {
        padding: 15px;
    }
    
    .race-item {
        padding: 12px;
    }
    
    .race-header {
        flex-direction: column;
        gap: 5px;
    }






    /* Horse Detail Page Mobile */
    .horse-detail-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .horse-detail-title {
        font-size: 1.8rem;
    }
    
    .horse-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .horse-detail-sidebar {
        position: static;
    }
    
    .horse-info-grid {
        grid-template-columns: 1fr;
    }
    
    .button-large {
        width: 100%;
        justify-content: center;
    }










}












/* ============================================
   Horse Notes Styles
   ============================================ */

/* Notes display on watchlist page */
.horse-notes {
    margin-top: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
}

.horse-notes-empty {
    background-color: transparent;
    border: 1px dashed #ddd;
    padding: 8px;
    text-align: center;
}

.notes-content {
    font-size: 0.9em;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 8px;
}

/* Notes buttons */
.button-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: underline;
    padding: 3px 5px;
    margin: 0;
    transition: color 0.2s ease;
}



.add-notes-btn,
.edit-notes-btn {
    display: inline-block;
}

/* Notes in race cards - desktop table */
.runner-notes {
    margin-top: 6px;
    padding: 6px 8px;
    background-color: #fffef5;
    border-radius: 3px;
    border-left: 2px solid var(--color-accent);
}

.notes-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 4px;
}

.notes-text {
    color: #555;
    font-style: italic;
    font-weight: 600;
}

.add-notes-btn-inline,
.edit-notes-btn-inline {
    margin-top: 4px;
    /* font-size: 0.8em; */
}

/* Notes in race cards - mobile */
.runner-notes-mobile {
    margin-top: 8px;
    padding: 8px;
    background-color: #fffef5;
    border-radius: 4px;
    border-left: 3px solid var(--color-accent);
}

.runner-notes-mobile .runner-info-row {
    margin-bottom: 4px;
}

.runner-notes-mobile .runner-value {
    font-style: italic;
    color: #555;
    display: block;
    margin-top: 4px;
}

.add-notes-btn-mobile,
.edit-notes-btn-mobile {
    margin-top: 8px;
}



/* Horse Single Page - Notes Section */
.horse-info-card .horse-notes-display {
    padding: 15px;
    background-color: #fffef5;
    border-radius: 4px;
    border-left: 3px solid var(--color-accent);
}

.horse-info-card .horse-notes-display .notes-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.horse-info-card .horse-notes-display .edit-notes-btn {
    margin-top: 8px;
}

.horse-info-card .no-notes {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ddd;
    text-align: center;
}

.horse-info-card .no-notes p {
    margin-bottom: 10px;
    color: var(--color-text-light);
    font-style: italic;
}









/* ============================================
   Notes Modal Styles
   ============================================ */

.nagme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nagme-modal.show {
    opacity: 1;
    visibility: visible;
}

.nagme-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.nagme-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.nagme-modal.show .nagme-modal-content {
    transform: scale(1);
}

.nagme-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nagme-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--color-primary);
}

.nagme-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nagme-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.nagme-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.horse-notes-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.horse-notes-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.nagme-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.nagme-modal-footer .button {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.nagme-modal-footer .button-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.nagme-modal-footer .button-secondary:hover {
    background-color: #e5e5e5;
}

.nagme-modal-footer .button-primary {
    background-color: var(--color-primary);
    color: white;
}

.nagme-modal-footer .button-primary:hover {
    background-color: var(--color-secondary);
}

.nagme-modal-footer .button-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .nagme-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .nagme-modal-header {
        padding: 16px 20px;
    }
    
    .nagme-modal-header h3 {
        font-size: 1.2em;
    }
    
    .nagme-modal-body {
        padding: 20px;
    }
    
    .nagme-modal-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }
    
    .nagme-modal-footer .button {
        width: 100%;
    }
    
    .horse-notes-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}













/* Notification styling enhancement for notes */
.nagme-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.nagme-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.nagme-notification-success {
    border-left: 4px solid #28a745;
    background-color: var(--color-success);
    color: white;
}

.nagme-notification-error {
    border-left: 4px solid #dc3545;
    background-color: var(--color-danger);
    color: white;
}

@media (max-width: 768px) {
    .nagme-notification {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }
}









/* NagMee Toggle Button Styles */
.horse-card-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.nagmee-toggle-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: #999;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hide any content inside the button */
.nagmee-toggle-btn span,
.nagmee-toggle-btn svg {
    display: none;
}

/* Bell icon for inactive state */
.nagmee-toggle-btn.nagmee-inactive::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>') no-repeat center;
    background-size: contain;
}

/* Bell icon for active state - filled */
.nagmee-toggle-btn.nagmee-active::before {
    content: '';
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" stroke="white" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>') no-repeat center;
    background-size: contain;
}

.nagmee-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nagmee-toggle-btn.nagmee-active {
    background-color: #c82333;
}

.nagmee-toggle-btn.nagmee-inactive {
    background-color: #999;
}

.nagmee-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
.nagmee-toggle-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.nagmee-toggle-btn.loading::before {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .horse-card-actions {
        flex-direction: column;
        gap: 8px;
    }
}













/* ========================================
   TOAST NOTIFICATION SYSTEM
   ======================================== */

#nagmee-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    pointer-events: none;
}

.nagmee-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    transform: translateX(420px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.nagmee-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast Types */
.nagmee-toast-success {
    border-left: 4px solid #4a7c8e;
}

.nagmee-toast-error {
    border-left: 4px solid #dc3232;
}

.nagmee-toast-info {
    border-left: 4px solid #0073aa;
}

.nagmee-toast-warning {
    border-left: 4px solid #D4AF37;
}

/* Toast Icon */
.toast-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.nagmee-toast-success .toast-icon {
    color: #4a7c8e;
}

.nagmee-toast-error .toast-icon {
    color: #dc3232;
}

.nagmee-toast-info .toast-icon {
    color: #0073aa;
}

.nagmee-toast-warning .toast-icon {
    color: #D4AF37;
}

/* Toast Message */
.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #nagmee-toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .nagmee-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}


/* ========================================
   LOADING OVERLAY
   ======================================== */

#nagmee-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#nagmee-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 4px solid rgba(44, 85, 48, 0.1);
    border-top: 4px solid #4a7c8e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}















/* ========================================
   ENHANCED BUTTON STATES
   ======================================== */

/* Base Button Enhancements */
.btn,
.button,
button[type="submit"],
button[type="button"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple Effect */
.btn::before,
.button::before,
button[type="submit"]::before,
button[type="button"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before,
.button:active::before,
button[type="submit"]:active::before,
button[type="button"]:active::before {
    width: 300px;
    height: 300px;
}

/* Loading State */
.btn.loading,
.button.loading,
.btn.saving,
.button.saving,
.btn.sending,
.button.sending {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after,
.button.loading::after,
.btn.saving::after,
.button.saving::after,
.btn.sending::after,
.button.sending::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* Success Pulse Animation */
.btn.success-pulse,
.button.success-pulse {
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(44, 85, 48, 0.4);
    }
}

/* Has Changes Indicator */
.btn.has-changes,
.button.has-changes {
    animation: pulse-attention 2s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    }
}

/* Hover Enhancement */
.btn:not(:disabled):hover,
.button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:not(:disabled):active,
.button:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}








/* ========================================
   FORM ENHANCEMENTS
   ======================================== */

/* Input Focus Effects */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    transition: all 0.3s ease;
    position: relative;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: #4a7c8e;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
    transform: translateY(-1px);
}

/* Error State */
.error-field {
    border-color: #dc3232 !important;
    background-color: #fef7f7 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.field-error {
    display: block;
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    animation: slide-down 0.3s ease;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Switch Enhancements */
.toggle-switch.toggle-animate .toggle-slider {
    animation: toggle-pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toggle-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.toggle-slider {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider:before {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 40px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.input-with-icon input:focus + .input-icon {
    color: #4a7c8e;
}












/* ========================================
   NAGMEE TOGGLE BUTTON POLISH
   ======================================== */

/* State Change Animation */
.nagmee-toggle-btn.state-changing {
    animation: state-change 0.3s ease;
}

@keyframes state-change {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

/* Hover Enhancement */
.nagmee-toggle-btn.hover-active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Active State Glow */
.nagmee-toggle-btn.nagmee-active {
    box-shadow: 0 2px 8px rgba(44, 85, 48, 0.2);
}

.nagmee-toggle-btn.nagmee-active:hover {
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

/* Status Badge Animation */
.nagmee-status {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nagmee-toggle-btn:hover .nagmee-status {
    transform: scale(1.05);
}

/* Icon Pulse on Hover */
.nagmee-toggle-btn:hover .nagmee-icon {
    animation: icon-pulse 1s ease-in-out;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Disabled State */
.nagmee-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus State for Accessibility */
.nagmee-toggle-btn:focus {
    outline: 2px solid #4a7c8e;
    outline-offset: 2px;
}







/* ========================================
   RESPONSIVE 
   ======================================== */

/* Tablet Improvements */
@media (max-width: 1024px) {
    .nagmee-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card:last-child {
        grid-column: 1 / -1;
    }
}

/* Mobile Improvements */
@media (max-width: 768px) {
    /* Larger tap targets */
    .nagmee-toggle-btn {
        width: 37px;
    }
    
    /* Stack buttons vertically */
    .horse-card-actions {
        flex-direction: column;
        width: 20%;
    }
    
    /* .nagmee-toggle-btn,
    .watch-list-toggle {
        width: 100%;
    } */
    
    /* Full-width forms on mobile */
    .settings-form input[type="text"],
    .settings-form input[type="email"],
    .settings-form select {
        width: 100% !important;
    }
    
    /* Adjust toast positioning */
    .nagmee-toast {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    /* Smaller stat cards */
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    #nagmee-toast-container {
        top: 10px;
    }
    
    .nagmee-toast {
        min-width: 250px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}















/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus Visible (for keyboard navigation) */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #4a7c8e;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(44, 85, 48, 0.1);
}

/* Remove focus outline for mouse users */
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nagmee-toggle-btn {
        border-width: 3px;
    }
    
    .status-badge {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}








/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    /* Hide interactive elements */
    .nagmee-toggle-btn,
    .watch-list-toggle,
    #send-test-email,
    #send-admin-test-email,
    .toast-close,
    #nagmee-toast-container,
    #nagmee-loading-overlay {
        display: none !important;
    }
    
    /* Optimize for print */
    .stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .settings-section {
        break-inside: avoid;
    }
    
    /* Remove animations */
    * {
        animation: none !important;
        transition: none !important;
    }
}















/* ==========================================
   HOMEPAGE STYLES
   ========================================== */

/* Homepage Header with Large Logo */
.site-header-home {
    background: #282b3d;
    border-bottom: none;
    padding: 30px 0;
}

.site-header-home .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header-home .header-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header-home .site-branding {
    text-align: center;
}

.site-header-home .custom-logo-link img {
    width: 280px;
    height: 280px;
    display: block;
}

.site-header-home .site-strapline {
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary);
}

.site-header-home .site-strapline p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

.site-header-home .main-navigation {
    margin-left: auto;
}

.site-header-home .nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header-home .nav-menu li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.site-header-home .nav-menu li a:hover,
.site-header-home .nav-menu li.current-menu-item a {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 720px;
    background: url('../images/hero-background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(41, 43, 61, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    padding: 40px;
}

.hero-text {
    position: absolute;
    color: var(--color-white);
}

.hero-text-top-left {
    top: 60px;
    left: 60px;
}

.hero-text-top-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.85);
    max-width: 600px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-alert-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.alert-example {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 400px;
    border-left: 5px solid var(--color-danger);
}

.alert-bell {
    color: var(--color-danger);
    flex-shrink: 0;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

.alert-text {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.4;
}

.alert-text strong {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-text-bottom-right {
    bottom: 60px;
    right: 60px;
    text-align: right;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: var(--color-accent);
}

.hero-tagline-secondary {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: var(--color-accent);
}





/* Below Hero Navigation */
.below-hero-nav {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-border);
    padding: 20px 0;
    margin-bottom: 60px;
}

.home-main-navigation {
    display: flex;
    justify-content: flex-end;
}

.home-nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-nav-menu li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.home-nav-menu li a:hover,
.home-nav-menu li.current-menu-item a {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Mobile Navigation Below Hero */
@media (max-width: 768px) {
    .below-hero-nav {
        padding: 20px 0;
    }
    
    .home-main-navigation {
        justify-content: center;
    }
    
    .home-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .home-nav-menu li a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}







/* Auth Section (Login/Register or Dashboard) */
.auth-section {
    margin-bottom: 80px;
}

/* User Dashboard */
.user-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-greeting {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-greeting h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.dashboard-greeting p {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Upcoming Races */
.upcoming-races {
    background: var(--color-white);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.upcoming-races h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.races-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.race-item {
    display: block;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--color-light);
    border-radius: 6px;
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.race-item:hover {
    background: #e9f5e9;
    transform: translateX(5px);
}

.race-item.race-today {
    border-left-color: var(--color-danger);
    background: #fff5f5;
}

.race-item.race-tomorrow {
    border-left-color: #ff9800;
    background: #fff8e6;
}

.race-horse strong {
    color: var(--color-text);
    font-size: 1.1rem;
}

.race-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.race-venue {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-actions .button {
    min-width: 200px;
}

/* Auth Forms (Login & Register) */
.auth-forms {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-form-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.login-form-container,
.register-form-container {
    background: var(--color-white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-form-container h2,
.register-form-container h2 {
    color: var(--color-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.login-form-container form p,
.register-form-container form p {
    margin-bottom: 20px;
}

.login-form-container label,
.register-form-container label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 500;
}

.login-form-container input[type="text"],
.login-form-container input[type="password"],
.register-form-container input[type="text"],
.register-form-container input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form-container input:focus,
.register-form-container input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.login-form-container .login-remember,
.register-form-container .register-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.login-form-container .login-submit,
.register-form-container .submit {
    margin-top: 10px;
}

.login-form-container input[type="submit"],
.register-form-container input[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-links {
    text-align: center;
    margin-top: 15px;
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* How It Works Section */
.how-it-works {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step-card {
    position: relative;
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step-icon {
    color: var(--color-accent);
    margin: 20px 0;
}

.step-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Quick Search Section */
.quick-search-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #4a7f4e 100%);
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 80px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.quick-search-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quick-search-content h2 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.quick-search-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.home-search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    background: var(--color-white);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.home-search-input {
    flex: 1;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    background: transparent;
}

.home-search-input:focus {
    outline: none;
}

.search-input-wrapper .button {
    white-space: nowrap;
    padding: 14px 30px;
    background: var(--color-accent);
    border: none;
}

.search-input-wrapper .button:hover {
    background: #d4a348;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d5a32 0%, var(--color-primary) 100%);
    padding: 80px 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.button-large {
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--color-accent);
    border: none;
}

.button-large:hover {
    background: #d4a348;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-header-home .custom-logo-link img {
        width: 200px;
        height: 200px;
    }
    
    .site-header-home .site-strapline p {
        font-size: 1.2rem;
    }
    
    .hero-section {
        height: 600px;
    }
    
    .hero-text-top-left h1 {
        font-size: 2.2rem;
        max-width: 450px;
    }
    
    .alert-example {
        min-width: 350px;
        padding: 20px 25px;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .hero-tagline-secondary {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .site-header-home .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-header-home .logo-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-header-home .custom-logo-link img {
        width: 150px;
        height: 150px;
    }
    
    .site-header-home .site-strapline {
        border-left: none;
        border-top: 2px solid var(--color-primary);
        padding-left: 0;
        padding-top: 10px;
    }
    
    .site-header-home .site-strapline p {
        font-size: 1rem;
    }
    
    .site-header-home .main-navigation {
        width: 100%;
        margin-left: 0;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-text-top-left {
        top: 30px;
        left: 30px;
    }
    
    .hero-text-top-left h1 {
        font-size: 1.8rem;
        max-width: 300px;
    }
    
    .alert-example {
        min-width: auto;
        max-width: 90%;
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .alert-text {
        font-size: 1rem;
    }
    
    .hero-text-bottom-right {
        bottom: 30px;
        right: 30px;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .hero-tagline-secondary {
        font-size: 1.2rem;
    }
    
    .dashboard-greeting h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .auth-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .home-search-input {
        padding: 14px 20px;
    }
    
    .search-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header-home {
        padding: 15px 0;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-text-top-left h1 {
        font-size: 1.4rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .hero-tagline-secondary {
        font-size: 1rem;
    }
    
    .user-dashboard,
    .auth-forms,
    .quick-search-section,
    .cta-section {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .button {
        width: 100%;
    }
}




/* ==========================================
   PROFESSIONAL FOOTER STYLES
   ========================================== */

.site-footer {
    background: linear-gradient(to bottom, #1a1d2e 0%, #0f1118 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    margin-top: 80px;
    border-top: 3px solid var(--color-accent);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Column Styling */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 20px 0;
    font-family: var(--font-heading);
}

.footer-heading a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-heading a:hover {
    color: var(--color-accent);
}

/* About Column */
.footer-about .footer-tagline {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 15px 0;
}

.footer-about .footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin: 0 0 25px 0;
    font-size: 0.95rem;
}

/* Social Media Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border-color: var(--color-accent);
}

/* Quick Links Column */
.footer-links .footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links .footer-navigation li {
    margin-bottom: 12px;
}

.footer-links .footer-navigation a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links .footer-navigation a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.footer-links .footer-navigation a:hover {
    color: var(--color-accent);
    padding-left: 25px;
}

.footer-links .footer-navigation a:hover::before {
    width: 15px;
}

/* Contact Column */
.footer-contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.contact-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-accent);
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--color-accent);
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--color-accent);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 0;
    }
    
    .footer-main {
        gap: 30px;
        padding-bottom: 30px;
    }
    
    .footer-heading {
        font-size: 1.1rem;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom p,
    .footer-legal a {
        font-size: 0.85rem;
    }
}






/* ========================================
   FORM LOADING STATES
   ======================================== */

/* Form submission loading state */
form.submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* Submit button loading state */
input[type="submit"].loading,
button[type="submit"].loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

input[type="submit"].loading::after,
button[type="submit"].loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* Disabled state for submit buttons */
input[type="submit"]:disabled,
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Auth form specific styles */
#loginform input[type="submit"]:disabled,
#loginform-home input[type="submit"]:disabled,
#registerform input[type="submit"]:disabled,
#registerform-home input[type="submit"]:disabled,
#lostpasswordform input[type="submit"]:disabled,
#resetpassform input[type="submit"]:disabled {
    background-color: #666 !important;
}
