/* RadioX Dedications Container */
.radiox-dedications-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

/* Dedication Form Styles */
.radiox-dedication-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.radiox-dedication-form h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2d2d2d;
}

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

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007aff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-dedication-btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.submit-dedication-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.submit-dedication-btn:active {
    transform: translateY(0);
}

.submit-dedication-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Messages */
.form-message {
    margin-top: 15px;
}

.success-message {
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-size: 14px;
}

.error-message {
    padding: 12px 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-size: 14px;
}

/* Dedications Scroller */
.radiox-dedications-scroller {
    background: #f5f5f7;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.radiox-dedications-scroller h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2d2d2d;
}

.dedications-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar */
.dedications-list::-webkit-scrollbar {
    width: 8px;
}

.dedications-list::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.dedications-list::-webkit-scrollbar-thumb {
    background: #007aff;
    border-radius: 4px;
}

.dedications-list::-webkit-scrollbar-thumb:hover {
    background: #0051d5;
}

/* Individual Dedication Item */
.dedication-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #007aff;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.dedication-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dedication-item.new-dedication {
    animation: newDedicationPulse 0.5s ease;
    border-left-color: #00d4ff;
}

@keyframes newDedicationPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    }
}

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

.dedication-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dedication-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #007aff;
}

.dedication-time {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6e6e73;
}

.dedication-song {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #b85042;
    margin-bottom: 8px;
    font-style: italic;
}

.dedication-message {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #2d2d2d;
    line-height: 1.6;
}

/* Loading and Error States */
.loading,
.no-dedications,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #6e6e73;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .radiox-dedications-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px auto;
    }
    
    .radiox-dedication-form,
    .radiox-dedications-scroller {
        padding: 20px;
    }
    
    .radiox-dedication-form h3,
    .radiox-dedications-scroller h3 {
        font-size: 20px;
    }
    
    .dedications-list {
        max-height: 400px;
    }
    
    .dedication-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .radiox-dedications-container {
        padding: 0 10px;
    }
    
    .dedication-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .form-group input[type="text"],
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
