*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

button:focus,
a:focus {
    outline: 2px solid #667EEA;
    outline-offset: 2px;
}

body {
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 500px;
}

.logincard {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.logincard h1 {
    color: #667EEA;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.logincard h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 1.2em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
    background-color: white;
}

.form-group select {
    cursor: pointer;
}

.form-group select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.form-group select[multiple] {
    min-height: 120px;
    padding: 8px;
}

.form-group select[multiple] option {
    padding: 8px;
    margin: 2px 0;
    border-radius: 3px;
}

.form-group select[multiple] option:checked {
    background-color: #667EEA;
    color: white;
}

.form-group select:focus {
    border-color: #667EEA;
    outline: none;
}

.hint {
    font-size: 0.75em;
    color: #666;
    font-weight: normal;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
    user-select: none;
}

.checkbox-label:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667EEA;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 1em;
    color: #333;
    flex: 1;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #667EEA;
}

/* Instrument Item with Skill Level */
.instrument-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.instrument-item:hover {
    border-color: #667EEA;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.instrument-item .checkbox-label {
    margin: 0;
    padding: 0;
    background: none;
}

.instrument-item .checkbox-label:hover {
    background: none;
}

.instrument-skill {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    background-color: #f8f9ff;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.instrument-skill:not(:disabled) {
    background-color: white;
    cursor: pointer;
}

.instrument-skill:not(:disabled):focus {
    border-color: #667EEA;
    outline: none;
}

.instrument-skill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);
    color: white;
}


.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.loginlink {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
}

.loginlink a {
    color: #667EEA;
    text-decoration: none;
    font-weight: 600;
}

.error.message {
    margin-top: 15px;
    padding: 10px;
    background-color: #fee;
    color: #c33;
    border-radius: 5px;
    font-size: 0.9em;
    display: none;
}

.error.message.show {
    display: block;
}

/* Dashboard Styles */
.dashboard-body {
    background: #f5f5f5;
    padding: 0;
    min-height: 100vh;
    display: block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-brand h1 {
    color: #667EEA;
    font-size: 1.8em;
    margin: 0;
}

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

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.nav-link:hover,
.nav-link.active {
    color: #667EEA;
}

/* Navigation Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Keep dropdown open when hovering over it */
.nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-dropdown-group label {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.nav-dropdown-select {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 2px solid #667EEA;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-dropdown-select:focus {
    outline: none;
    border-color: #3B3355;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-container > h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667EEA;
}

.dashboard-container > h2:nth-of-type(1) {
    border-bottom-color: #667EEA;
}

.dashboard-container > h2:nth-of-type(2) {
    border-bottom-color: #667EEA;
}

.dashboard-container > h2:nth-of-type(3) {
    border-bottom-color: #667EEA;
}

.music-opportunities-container > h2 {
    margin: 0 0 30px 0 !important;
    padding-bottom: 0;
    display: block;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 25px;
}

.welcome-section h2 {
    color: #333;
    font-size: 2em;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

/* Practice Streak Section */
.streak-section {
    margin-bottom: 25px;
}

.streak-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 12px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    color: white;
}

.streak-icon {
    font-size: 3em;
    line-height: 1;
}

.streak-info {
    flex: 1;
}

.streak-info h3 {
    margin: 0 0 5px 0;
    font-size: 2em;
    font-weight: 700;
    color: white;
}

.streak-label {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
}

/* Quick Log Button */
.quick-log-section {
    margin-bottom: 30px;
    text-align: center;
}

.quick-log-btn {
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.quick-log-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 1.3em;
}

/* Practice Summary */
.practice-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.practice-summary h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #667EEA;
    padding-bottom: 10px;
}

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

.stat-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #f0f4ff 0%, #D9DBF1 100%);
    border-left: 4px solid #667EEA;
    border-top: 2px solid #5266C1;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f0f4ff 0%, #D9DBF1 100%);
    border-left: 4px solid #667EEA;
    border-top: 2px solid #5266C1;
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f0f4ff 0%, #D9DBF1 100%);
    border-left: 4px solid #667EEA;
    border-top: 2px solid #5266C1;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5em;
}

.stat-info h3 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 1em;
}

.stat-time {
    color: #667EEA;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0;
}

.stat-card:nth-child(1) .stat-time {
    color: #667EEA;
}

.stat-card:nth-child(2) .stat-time {
    color: #667EEA;
}

.stat-card:nth-child(3) .stat-time {
    color: #667EEA;
}

.total-practice {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    font-size: 1.2em;
    color: #333;
}

.total-practice span {
    color: #667EEA;
    font-weight: 600;
    font-size: 1.3em;
}

/* Warm Up Section */
.warmup-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.warmup-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #667EEA;
    padding-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
}

/* Events Section */
.events-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.events-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #667EEA;
    padding-bottom: 10px;
}

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

.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    min-width: 70px;
}

.event-day {
    display: block;
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
    margin-top: 5px;
}

.event-details h3 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.event-details p {
    color: #666;
    margin: 0;
    font-size: 0.95em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.modal-content .form-group select,
.modal-content .form-group input,
.modal-content .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

.modal-content .form-group textarea {
    resize: vertical;
}

.modal-content .btn {
    width: 100%;
    margin-top: 10px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #667EEA;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.nav-toggle:hover,
.nav-toggle:focus {
    color: #764ba2;
    outline: none;
}

.nav-toggle:active {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 10px;
        display: block;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        min-height: 48px;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-dropdown-menu {
        position: static;
        display: flex;
        box-shadow: none;
        border-radius: 0;
        padding: 15px 10px;
        margin-top: 0;
        border-top: 1px solid #f0f0f0;
        background: #f9f9f9;
        min-width: auto;
    }

    .nav-item-dropdown:hover .nav-dropdown-menu,
    .nav-menu.active .nav-dropdown-menu {
        display: flex;
    }

    .practice-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-container {
        padding: 15px 10px;
    }

    .practice-summary,
    .warmup-section,
    .events-section {
        padding: 20px 15px;
    }

    .practice-summary h2,
    .warmup-section h2,
    .events-section h2 {
        font-size: 1.5em;
    }

    .welcome-section h2 {
        font-size: 1.6em;
    }

    .streak-card {
        padding: 15px 20px;
        gap: 15px;
    }

    .streak-icon {
        font-size: 2.5em;
    }

    .streak-info h3 {
        font-size: 1.6em;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 2em;
    }

    .stat-time {
        font-size: 1.3em;
    }

    .quick-log-btn {
        width: 100%;
        padding: 18px 20px;
        font-size: 1.1em;
    }

    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .event-date {
        align-self: flex-start;
    }

    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .close {
        font-size: 32px;
        line-height: 20px;
    }

    .total-practice {
        font-size: 1.1em;
    }

    .total-practice span {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.5em;
    }

    .dashboard-container {
        padding: 10px 8px;
    }

    .practice-summary,
    .warmup-section,
    .events-section {
        padding: 15px 12px;
        border-radius: 8px;
    }

    .practice-summary h2,
    .warmup-section h2,
    .events-section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .welcome-section h2 {
        font-size: 1.4em;
    }

    .streak-card {
        padding: 12px 15px;
        gap: 12px;
    }

    .streak-icon {
        font-size: 2em;
    }

    .streak-info h3 {
        font-size: 1.4em;
    }

    .streak-label {
        font-size: 0.8em;
    }

    .stat-card {
        padding: 12px;
        gap: 12px;
    }

    .stat-icon {
        font-size: 1.8em;
    }

    .stat-info h3 {
        font-size: 0.9em;
    }

    .stat-time {
        font-size: 1.2em;
    }

    .quick-log-btn {
        padding: 16px;
        font-size: 1em;
    }

    .video-description {
        font-size: 0.9em;
    }

    .event-card {
        padding: 15px;
    }

    .event-date {
        padding: 12px;
        min-width: 60px;
    }

    .event-day {
        font-size: 1.5em;
    }

    .event-month {
        font-size: 0.8em;
    }

    .event-details h3 {
        font-size: 1.1em;
    }

    .event-details p {
        font-size: 0.9em;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-content h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.95em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Login Page Mobile Styles */
@media (max-width: 768px) {
    body:not(.dashboard-body) {
        padding: 10px;
    }

    .container {
        max-width: 100%;
    }

    .logincard {
        padding: 30px 20px;
    }

    .logincard h1 {
        font-size: 2em;
    }

    .logincard h2 {
        font-size: 1.5em;
    }

    .form-group label {
        font-size: 1.1em;
    }

    .form-group input:not([type="checkbox"]),
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .instrument-item {
        padding: 10px;
    }

    .checkbox-label {
        padding: 6px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .instrument-skill {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 16px;
        font-size: 16px;
    }

    .loginlink {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .logincard {
        padding: 25px 15px;
    }

    .logincard h1 {
        font-size: 1.8em;
    }

    .logincard h2 {
        font-size: 1.3em;
    }
}

/* Practice Log Page Styles */
.refresh-btn {
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(360deg);
}

.time-period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 10px 20px;
    border: 2px solid #667EEA;
    background: white;
    color: #667EEA;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
}

.period-btn:hover {
    background: #f8f9ff;
}

.period-btn.active {
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);
    color: white;
    border-color: #667EEA;
}

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

.total-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #5266C1;
    border-left: 2px solid #5266C1;
}

.total-card:nth-child(1) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

.total-card:nth-child(2) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

.total-card:nth-child(3) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

.total-card.highlight {
    background: linear-gradient(135deg, #667EEA 0%, #764ba2 100%);
    color: white;
    border-top-color: transparent;
}

.total-card h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #666;
}

.total-card.highlight h3 {
    color: white;
}

.total-time {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    color: #667EEA;
}

.total-card:nth-child(1) .total-time {
    color: #667EEA;
}

.total-card:nth-child(2) .total-time {
    color: #667EEA;
}

.total-card:nth-child(3) .total-time {
    color: #667EEA;
}

.total-card.highlight .total-time {
    color: white;
}

.chart-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.chart-section:nth-of-type(1) h3 {
    color: #667EEA;
    border-bottom: 2px solid #667EEA;
    padding-bottom: 8px;
}

.chart-section:nth-of-type(2) h3 {
    color: #667EEA;
    border-bottom: 2px solid #667EEA;
    padding-bottom: 8px;
}

.chart-section canvas {
    max-height: 400px;
}

.recent-logs-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-logs-section h3 {
    margin: 0 0 20px 0;
    color: #764ba2;
    font-size: 1.5em;
    border-bottom: 2px solid #764ba2;
    padding-bottom: 8px;
}

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

.log-entry {
    padding: 15px;
    background: #f8f9ff;
    border-radius: 8px;
    border-left: 4px solid #667EEA;
    position: relative;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.log-actions {
    display: flex;
    gap: 8px;
}

.edit-log-btn,
.delete-log-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    opacity: 0.7;
}

.edit-log-btn:hover {
    background-color: rgba(102, 126, 234, 0.1);
    opacity: 1;
}

.delete-log-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    opacity: 1;
}

.log-entry:hover .log-actions {
    opacity: 1;
}

.log-entry .log-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.log-entry:nth-child(1),
.log-entry:nth-child(5),
.log-entry:nth-child(9) {
    border-left-color: #667EEA;
    background: #f0f4ff;
}

.log-entry:nth-child(2),
.log-entry:nth-child(6),
.log-entry:nth-child(10) {
    border-left-color: #667EEA;
    background: #f0f4ff;
}

.log-entry:nth-child(3),
.log-entry:nth-child(7),
.log-entry:nth-child(11) {
    border-left-color: #667EEA;
    background: #f0f4ff;
}

.log-entry:nth-child(4),
.log-entry:nth-child(8),
.log-entry:nth-child(12) {
    border-left-color: #667EEA;
    background: #f0f4ff;
}

.log-date {
    font-weight: 600;
    color: #667EEA;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.log-entry:nth-child(1) .log-date,
.log-entry:nth-child(5) .log-date,
.log-entry:nth-child(9) .log-date {
    color: #667EEA;
}

.log-entry:nth-child(2) .log-date,
.log-entry:nth-child(6) .log-date,
.log-entry:nth-child(10) .log-date {
    color: #667EEA;
}

.log-entry:nth-child(3) .log-date,
.log-entry:nth-child(7) .log-date,
.log-entry:nth-child(11) .log-date {
    color: #667EEA;
}

.log-entry:nth-child(4) .log-date,
.log-entry:nth-child(8) .log-date,
.log-entry:nth-child(12) .log-date {
    color: #667EEA;
}

.log-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.log-type {
    font-weight: 500;
    color: #333;
}

.log-duration {
    font-weight: 600;
    color: #667EEA;
}

.log-entry:nth-child(1) .log-duration,
.log-entry:nth-child(5) .log-duration,
.log-entry:nth-child(9) .log-duration {
    color: #667EEA;
}

.log-entry:nth-child(2) .log-duration,
.log-entry:nth-child(6) .log-duration,
.log-entry:nth-child(10) .log-duration {
    color: #667EEA;
}

.log-entry:nth-child(3) .log-duration,
.log-entry:nth-child(7) .log-duration,
.log-entry:nth-child(11) .log-duration {
    color: #667EEA;
}

.log-entry:nth-child(4) .log-duration,
.log-entry:nth-child(8) .log-duration,
.log-entry:nth-child(12) .log-duration {
    color: #667EEA;
}

.log-notes {
    margin-top: 8px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

@media (max-width: 768px) {
    .time-period-selector {
        justify-content: center;
    }
    
    .period-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .practice-totals {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-section {
        padding: 20px 15px;
    }
    
    .chart-section canvas {
        max-height: 300px;
    }
}

/* Music Opportunities Page Styles */
.opportunities-section {
    margin-bottom: 50px;
}

.section-title {
    color: #333;
    font-size: 2em;
    font-weight: 600;
    margin: 40px 0 30px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #667EEA;
}

.section-title:nth-of-type(1) {
    border-bottom-color: #667EEA;
}

.section-title:nth-of-type(2) {
    border-bottom-color: #667EEA;
}

.section-title:nth-of-type(3) {
    border-bottom-color: #667EEA;
}

.opportunity-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}

.opportunity-pdf {
    flex: 1;
    min-width: 200px;
    position: relative;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: none;
    display: none;
}

.pdf-viewer[src] {
    display: block;
}

.pdf-placeholder {
    color: #999;
    font-size: 0.85em;
    text-align: center;
    padding: 10px;
}

.pdf-viewer[src] + .pdf-placeholder {
    display: none;
}

.opportunity-content {
    flex: 1;
    min-width: 200px;
}

.opportunity-text {
    width: 100%;
    min-height: 200px;
    max-height: 200px;
    padding: 0 10px 10px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 1em;
    line-height: 1.2;
    background: white;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: visible;
}

.opportunity-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.opportunity-details li {
    padding: 1px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1em;
    line-height: 1.2;
}

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

.opportunity-details li strong {
    color: #667EEA;
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
    font-size: 1em;
}

/* Minimalist Cards (Option 5 - Selected Design) */
.opportunity-minimal-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #667eea;
    margin-bottom: 20px;
}

.opportunity-minimal-card:nth-child(1) {
    border-top-color: #667EEA;
}

.opportunity-minimal-card:nth-child(2) {
    border-top-color: #667EEA;
}

.opportunity-minimal-card:nth-child(3) {
    border-top-color: #667EEA;
}

.minimal-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.minimal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.minimal-row {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.minimal-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.minimal-label {
    font-weight: 600;
    color: #667EEA;
    min-width: 150px;
    font-size: 0.95em;
}

.opportunity-minimal-card:nth-child(1) .minimal-label {
    color: #667EEA;
}

.opportunity-minimal-card:nth-child(2) .minimal-label {
    color: #667EEA;
}

.opportunity-minimal-card:nth-child(3) .minimal-label {
    color: #667EEA;
}

.minimal-text {
    color: #333;
    flex: 1;
}

.minimal-text a {
    color: #667EEA;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.minimal-text a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.minimal-text a:visited {
    color: #8b7fd8;
}

/* Responsive for minimalist cards */
@media (max-width: 768px) {
    .minimal-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .minimal-label {
        min-width: auto;
    }
    
    .opportunity-minimal-card {
        padding: 15px;
    }
}

/* Sub Navigation Bar */
.sub-nav-bar {
    display: flex;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 25px;
    padding-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.sub-nav-btn {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    color: #667EEA;
    background: white;
    border: 2px solid #667EEA;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sub-nav-btn:hover {
    background: #f5f5f5;
}

.sub-nav-btn.active {
    background: #667eea;
    color: white;
    border-color: #667EEA;
}

/* Video Selection Buttons */
.selection-group {
    margin-bottom: 1.5rem;
}

.selection-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-btn {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    color: #667EEA;
    background: white;
    border: 2px solid #667EEA;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.selection-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.selection-btn.active {
    background: #667eea;
    color: white;
    border-color: #667EEA;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* County Selector Styles */
.county-selector-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.county-label {
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.county-select {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 2px solid #667EEA;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.county-select:focus {
    outline: none;
    border-color: #3B3355;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.county-content {
    display: block;
}

.coming-soon-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.coming-soon-message p {
    font-size: 1.5em;
    color: #667EEA;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design for Music Opportunities */
@media (max-width: 968px) {
    .opportunity-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .opportunity-pdf,
    .opportunity-content {
        min-width: 100%;
        width: 100%;
    }
    
    .opportunity-pdf {
        min-height: 180px;
    }
    
    .pdf-viewer {
        min-height: 180px;
    }
    
    .opportunity-text {
        min-height: 180px;
        max-height: 180px;
    }
    
    .sub-nav-bar {
        flex-wrap: wrap;
    }
    
    .sub-nav-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6em;
        margin: 30px 0 20px 0;
    }
    
    .opportunity-item {
        padding: 10px;
    }
    
    .opportunity-pdf {
        min-height: 150px;
    }
    
    .pdf-viewer {
        min-height: 150px;
    }
    
    .opportunity-text {
        min-height: 150px;
        max-height: 150px;
        font-size: 0.9em;
    }
    
    .opportunity-details li {
        font-size: 0.9em;
        padding: 2px 0;
    }
    
    .opportunity-details li strong {
        min-width: 90px;
        font-size: 0.9em;
    }
    
    .county-selector-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .county-select {
        width: 100%;
        min-width: auto;
        font-size: 0.85em;
    }
    
    .county-label {
        font-size: 0.9em;
    }
    
    .sub-nav-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .coming-soon-message {
        padding: 30px 15px;
    }
    
    .coming-soon-message p {
        font-size: 1em;
    }
}

/* Video Resources Styles */
.video-resources-section {
    margin-top: 20px;
}

.video-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-label {
    margin-top: 0.75rem;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.coming-soon-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px dashed #ccc;
}

.coming-soon-text {
    font-size: 1.5em;
    font-weight: 600;
    color: #667EEA;
    margin: 0;
}

.video-dropdowns-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.video-dropdown-group {
    flex: 1;
    min-width: 200px;
}

.video-dropdown-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.2em;
}

.video-resource-select {
    padding: 8px 12px;
    font-size: 0.9em;
    border: 2px solid #667EEA;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-resource-select:focus {
    outline: none;
    border-color: #3B3355;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.video-content-section {
    margin-top: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .video-dropdowns-container {
        flex-direction: column;
    }
    
    .video-dropdown-group {
        min-width: 100%;
    }
}

/* Instrument Guide Styles */
.instrument-guide-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.instrument-guide-section > h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 600;
}

.instrument-category,
.info-section {
    margin-bottom: 50px;
}

.instrument-category h3,
.info-section h3 {
    color: #667EEA;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.instrument-category:nth-of-type(1) h3 {
    color: #667EEA;
    border-bottom-color: #667EEA;
}

.instrument-category:nth-of-type(2) h3 {
    color: #667EEA;
    border-bottom-color: #667EEA;
}

.info-section:nth-of-type(1) h3 {
    color: #667EEA;
    border-bottom-color: #667EEA;
}

.info-section:nth-of-type(2) h3 {
    color: #667EEA;
    border-bottom-color: #667EEA;
}

.info-section:nth-of-type(3) h3 {
    color: #667EEA;
    border-bottom-color: #667EEA;
}

.info-section:nth-of-type(4) h3 {
    color: #667EEA;
    border-bottom-color: #667EEA;
}

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

.instrument-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #5266C1;
    border-left: 2px solid #5266C1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.instrument-card:nth-child(1) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

.instrument-card:nth-child(2) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

.instrument-card:nth-child(3) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

.instrument-card:nth-child(4) {
    border-top-color: #5266C1;
    border-left-color: #5266C1;
}

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

.instrument-card h4 {
    color: #667EEA;
    font-size: 1.3em;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.instrument-card:nth-child(1) h4 {
    color: #667EEA;
}

.instrument-card:nth-child(2) h4 {
    color: #667EEA;
}

.instrument-card:nth-child(3) h4 {
    color: #667EEA;
}

.instrument-card:nth-child(4) h4 {
    color: #667EEA;
}

.instrument-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

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

.info-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #5266C1;
    border-top: 2px solid #5266C1;
}

.info-card:nth-child(1) {
    border-left-color: #5266C1;
    border-top-color: #5266C1;
}

.info-card:nth-child(2) {
    border-left-color: #5266C1;
    border-top-color: #5266C1;
}

.info-card:nth-child(3) {
    border-left-color: #5266C1;
    border-top-color: #5266C1;
}

.info-card:nth-child(4) {
    border-left-color: #5266C1;
    border-top-color: #5266C1;
}

.info-card h4 {
    color: #667EEA;
    font-size: 1.2em;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.info-card:nth-child(1) h4 {
    color: #667EEA;
}

.info-card:nth-child(2) h4 {
    color: #667EEA;
}

.info-card:nth-child(3) h4 {
    color: #667EEA;
}

.info-card:nth-child(4) h4 {
    color: #667EEA;
}

.info-card p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95em;
}

.terms-section {
    margin-bottom: 30px;
}

.terms-section h4 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-section:nth-of-type(1) h4 {
    color: #667EEA;
}

.terms-section:nth-of-type(2) h4 {
    color: #667EEA;
}

.terms-section:nth-of-type(3) h4 {
    color: #667EEA;
}

.terms-section:nth-of-type(4) h4 {
    color: #667EEA;
}

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

.term-item {
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.term-item:nth-child(1),
.term-item:nth-child(7),
.term-item:nth-child(13) {
    border-left-color: #667EEA;
}

.term-item:nth-child(2),
.term-item:nth-child(8),
.term-item:nth-child(14) {
    border-left-color: #667EEA;
}

.term-item:nth-child(3),
.term-item:nth-child(9),
.term-item:nth-child(15) {
    border-left-color: #667EEA;
}

.term-item:nth-child(4),
.term-item:nth-child(10),
.term-item:nth-child(16) {
    border-left-color: #667EEA;
}

.term-item:nth-child(5),
.term-item:nth-child(11),
.term-item:nth-child(17) {
    border-left-color: #667EEA;
}

.term-item:nth-child(6),
.term-item:nth-child(12),
.term-item:nth-child(18) {
    border-left-color: #667EEA;
}

.term-name {
    font-weight: 600;
    color: #667EEA;
    font-size: 1em;
}

.term-item:nth-child(1) .term-name,
.term-item:nth-child(7) .term-name,
.term-item:nth-child(13) .term-name {
    color: #667EEA;
}

.term-item:nth-child(2) .term-name,
.term-item:nth-child(8) .term-name,
.term-item:nth-child(14) .term-name {
    color: #667EEA;
}

.term-item:nth-child(3) .term-name,
.term-item:nth-child(9) .term-name,
.term-item:nth-child(15) .term-name {
    color: #667EEA;
}

.term-item:nth-child(4) .term-name,
.term-item:nth-child(10) .term-name,
.term-item:nth-child(16) .term-name {
    color: #667EEA;
}

.term-item:nth-child(5) .term-name,
.term-item:nth-child(11) .term-name,
.term-item:nth-child(17) .term-name {
    color: #667EEA;
}

.term-item:nth-child(6) .term-name,
.term-item:nth-child(12) .term-name,
.term-item:nth-child(18) .term-name {
    color: #667EEA;
}

.term-definition {
    color: #555;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .instrument-guide-section > h2 {
        font-size: 1.6em;
    }

    .instrument-category h3,
    .info-section h3 {
        font-size: 1.3em;
    }

    .instrument-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }
}