* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #7AC2D8 0%, #12A986 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Language switcher */
.language-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
    position: relative;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 8px;
    margin: 4px;
    font-weight: 500;
    color: #2d3748;
}

.language-option:hover {
    background: #f7fafc;
}

.language-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
    margin-top: 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
}

header {
    position: relative;
}

main {
    padding: 30px;
}

section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Collapsible sections */
.collapsible {
    padding: 0;
}

.section-header {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #29677B;
    color: white;
    transition: background 0.3s ease;
}

.section-header:hover {
    background: #49AECD;
}

.section-header h2 {
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.section-title {
    flex: 1;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 25px;
    display: block;
}



h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    margin: 20px 0 15px 0;
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 500;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input[readonly] {
    background-color: #f7fafc;
    color: #718096;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #7AC2D8 0%, #12A986 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(72, 187, 120, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
}



.btn-warning {
    background: linear-gradient(135deg, #7AC2D8 0%, #12A986 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(237, 137, 54, 0.3);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control label {
    margin-bottom: 0;
    white-space: nowrap;
}

.volume-control input[type="range"] {
    width: 100px;
    margin: 0;
}

.volume-control span {
    min-width: 40px;
    font-weight: 600;
}

.schedule-options {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.schedule-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    order: 2; /* Move image to the right */
}

.schedule-options-content {
    flex: 1;
    order: 1; /* Move content to the left */
}

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

.option input[type="radio"] {
    width: auto;
    margin: 0;
}

.option label {
    margin-bottom: 0;
    cursor: pointer;
}

.option input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.custom-time,
.minutes-later {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.time-inputs {
    display: flex;
    gap: 20px;
}

.time-inputs .input-group {
    flex: 1;
    margin-bottom: 0;
}

.time-inputs input {
    width: 100%;
}

.schedule-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.status-info p {
    margin-bottom: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #7AC2D8;
}

.status-info strong {
    color: #2d3748;
}

.recent-plays {
    margin-top: 20px;
}

.plays-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
}

.play-entry {
    padding: 10px;
    margin-bottom: 10px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #7AC2D8;
}

.play-entry:last-child {
    margin-bottom: 0;
}

.play-entry .time {
    font-weight: 600;
    color: #2d3748;
}

.play-entry .tune {
    color: #718096;
    font-size: 0.9rem;
}

.no-plays {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .schedule-options {
        flex-direction: column;
        align-items: center;
    }
    
    .schedule-image {
        width: 100px;
        height: 100px;
        order: 1; /* On mobile, image goes on top */
    }
    
    .schedule-options-content {
        order: 2; /* On mobile, content goes below */
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-inputs {
        flex-direction: column;
    }
    
    .schedule-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .language-dropdown {
        right: -20px;
        min-width: 140px;
    }
}

/* Animation for playing state */
.playing {
    animation: pulse 1s infinite;
}

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

/* Link styling */
a {
    color: #12A986;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer styling */
footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} 