.admin-wrapper {
    background: var(--background-dark);
    min-height: 100vh;
    padding-top: 6rem; /* Account for fixed header */
}

.admin-nav {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.admin-nav__button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-nav__button.active,
.admin-nav__button:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.admin-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-panel {
    background: var(--background-darker);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-panel h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-form {
    max-width: 100%;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.test-input {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-color) !important;
    font-family: monospace;
}

.admin-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--background-dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background: var(--secondary-color);
}

.course-dates-list,
.bookings-list {
    display: grid;
    gap: 1.25rem;
}

.course-date-item,
.booking-item {
    background: var(--background-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.course-date-item:hover,
.booking-item:hover {
    transform: translateY(-2px);
}

.course-date-item__header,
.booking-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-date-item__title {
    color: var(--primary-color);
    font-weight: 600;
}

.course-date-item__details,
.booking-item__details {
    display: grid;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.bookings-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--background-dark);
    padding: 1.75rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
}

.delete-btn {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-1px);
}

.delete-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .bookings-cards {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }
    
    .admin-panel {
        padding: 1.5rem;
    }
    
    .admin-nav {
        flex-wrap: wrap;
    }
    
    .admin-nav__button {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 0.5rem 1rem;
    }
    
    .bookings-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.bookings-calendar {
    background: var(--background-darker);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.calendar-header {
    background: var(--background-dark);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.calendar-nav {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.calendar-nav:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(80px, auto);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day-header {
    background: var(--background-dark);
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.calendar-day {
    background: var(--background-dark);
    padding: 0.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 80px;
    height: 100%;
}

.calendar-day.today {
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid var(--primary-color);
}

.calendar-day.empty {
    background: var(--background-darker);
}

.day-number {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.day-courses {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.day-courses::-webkit-scrollbar {
    width: 4px;
}

.day-courses::-webkit-scrollbar-track {
    background: transparent;
}

.day-courses::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.calendar-course {
    background: var(--background-darker);
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.2s;
    position: relative;
}

.calendar-course:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.calendar-course.full {
    background: rgba(255, 68, 68, 0.05);
    border-color: rgba(255, 68, 68, 0.2);
}

.calendar-course.limited {
    background: rgba(255, 171, 25, 0.05);
    border-color: rgba(255, 171, 25, 0.2);
}

.calendar-course.available {
    background: rgba(46, 213, 115, 0.05);
    border-color: rgba(46, 213, 115, 0.2);
}

.calendar-course__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-spaces {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.course-spaces.full {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.course-spaces.limited {
    color: #ffab19;
    background: rgba(255, 171, 25, 0.1);
}

.course-spaces.available {
    color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.calendar-course__actions {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.calendar-course:hover .calendar-course__actions {
    opacity: 1;
}

.calendar-delete-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: all 0.2s;
}

.calendar-delete-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: scale(1.1);
}

.course-badge {
    background: var(--primary-color);
    color: var(--background-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.75rem;
}

.course-spaces {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Update layout spacing */
.admin-grid {
    gap: 2.5rem;
}

/* Course dates panel layout */
.course-dates-panel {
    background: var(--background-darker);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 700px; /* Increased height */
}

/* View toggle styles */
.panel-header {
    background: var(--background-dark);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.view-toggle-btn.active {
    background: var(--primary-color);
    color: var(--background-dark);
}

/* View container styles */
.course-dates-view {
    display: none;
    height: calc(100% - 64px);
}

.course-dates-view.active {
    display: block;
    height: 100%;
}

/* List view styles */
.list-view {
    padding: 0.75rem;
    height: 100%;
}

.course-dates-list {
    display: grid;
    gap: 0.5rem;
    height: 100%;
}

/* Course item styles */
.course-date-item {
    background: var(--background-dark);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative; /* For delete button positioning */
}

.course-date-item__header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-date-item__content {
    padding: 0.75rem 1rem;
}

.course-date-item__info {
    display: grid;
    gap: 0.4rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--background-darker);
    border-radius: 4px;
}

/* Badge and label styles */
.course-type-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 35px;
    background: var(--primary-color);
    color: var(--background-dark);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.course-date {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
}

.availability-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    min-width: 110px;
    text-align: center;
    border-radius: 4px;
    font-weight: 500;
}

.availability-badge.available {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.availability-badge.limited {
    background: rgba(255, 171, 25, 0.15);
    color: #ffab19;
    border: 1px solid rgba(255, 171, 25, 0.3);
}

.availability-badge.full {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.9;
}

.info-value {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 3px;
    font-weight: 500;
}

/* Action buttons */
.course-date-item__actions {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.delete-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-1px);
}

.delete-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Delete button for course cards */
.course-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-date-item:hover .course-delete-btn {
    opacity: 1;
}

.course-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .course-dates-panel {
        height: 650px;
    }
}

@media (max-width: 1200px) {
    .course-dates-panel {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .course-dates-panel {
        height: 550px;
    }
    
    .list-view {
        padding: 0.5rem;
    }
}

/* Course header improvements */
.course-date-item__type {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.course-date-item__type span:last-child {
    color: var(--text-color);
    font-weight: 500;
}

/* Badge improvements */
.course-type-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 35px;
    background: var(--primary-color);
    color: var(--background-dark);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Date display improvements */
.course-date {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
}

/* Header spacing */
.course-date-item__header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content spacing */
.course-date-item__content {
    padding: 0.75rem 1rem;
}

/* Bookings list styles - matching course dates */
.bookings-list {
    display: grid;
    gap: 0.5rem;
    height: 100%;
    padding: 0.75rem;
}

.booking-card {
    background: var(--background-dark);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.booking-card__header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-card__type {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.booking-type-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 35px;
    background: var(--primary-color);
    color: var(--background-dark);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.booking-date {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
}

.booking-card__content {
    padding: 0.75rem 1rem;
}

.booking-card__info {
    display: grid;
    gap: 0.4rem;
}

.booking-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--background-darker);
    border-radius: 4px;
}

.booking-info-label {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.9;
}

.booking-info-value {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 3px;
    font-weight: 500;
}

.booking-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.booking-card:hover .booking-delete-btn {
    opacity: 1;
}

.booking-delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Remove calendar-specific styles and update bookings list */
.bookings-list {
    display: grid;
    gap: 0.5rem;
    height: 100%;
    padding: 0.75rem;
}

.no-bookings {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    padding: 2rem;
}

/* Remove all calendar-related styles */
.bookings-calendar,
.calendar-controls,
.calendar-navigation,
.calendar-view-toggle,
.week-view,
.month-view {
    display: none;
}

/* Remove these old payment method styles */
.payment-methods,
.payment-method,
.payment-details,
.payment-options,
.payment-option {
    display: none;
}

/* Test Payment Section Styles */
.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.payment-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.payment-section .admin-panel {
    background: var(--background-darker);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.payment-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-amount, 
.clearpay-total {
    background: rgba(0, 255, 157, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clearpay-breakdown {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.clearpay-installments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clearpay-installments strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.clearpay-learn {
    display: block;
    color: var(--primary-color);
    margin-top: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

.clearpay-button {
    background: #b2fce4;
    color: #000000;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-section {
        grid-template-columns: 1fr;
    }
} 