* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.1);
}

.header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    background: linear-gradient(45deg, #e94560, #f39c12, #9b59b6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.search-section {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.1);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e94560;
    border: 2px solid #e94560;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.google-btn {
    background: #4285f4;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.google-btn:hover {
    background: #3367d6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.google-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.google-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
}

.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.sidebar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.collections {
    margin-bottom: 25px;
}

.collections h3 {
    margin-bottom: 15px;
    color: #f39c12;
}

.collection-item {
    padding: 10px 15px;
    background: rgba(233, 69, 96, 0.1);
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.collection-item:hover {
    background: rgba(233, 69, 96, 0.2);
    transform: translateX(5px);
}

/* Collection Edit Styles */
.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.collection-name {
    flex: 1;
    cursor: pointer;
}

.collection-edit-btn {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.collection-edit-btn:hover {
    background: rgba(243, 156, 18, 0.3);
    transform: scale(1.1);
}

.edit-collection-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.edit-collection-header {
    flex-shrink: 0;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
}

.edit-collection-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    min-height: 300px;
}

.edit-collection-footer {
    flex-shrink: 0;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid rgba(233, 69, 96, 0.3);
    text-align: center;
}

.collection-sound-item {
    background: rgba(233, 69, 96, 0.1);
    margin: 6px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.collection-sound-item:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
}

.collection-sound-info {
    flex: 1;
}

.collection-sound-info h5 {
    margin: 0 0 3px 0;
    color: #e94560;
    font-size: 13px;
    font-weight: bold;
}

.collection-sound-info p {
    margin: 0 0 2px 0;
    color: #bbb;
    font-size: 11px;
    line-height: 1.3;
}

.collection-sound-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.collection-sound-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.collection-sound-btn.play {
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
}

.collection-sound-btn.remove {
    background: #e74c3c;
    color: white;
}

.collection-sound-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.empty-collection {
    text-align: center;
    color: #bbb;
    font-style: italic;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px dashed rgba(233, 69, 96, 0.3);
    margin: 10px 0;
}

.collection-meta {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.collection-meta h4 {
    color: #f39c12;
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.collection-meta p {
    color: #bbb;
    margin: 3px 0;
    font-size: 12px;
}

.collection-name-edit {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    padding: 8px;
    width: 100%;
    margin-bottom: 8px;
    font-size: 14px;
}

.collection-name-edit:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

.btn-update-collection {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.btn-update-collection:hover {
    background: linear-gradient(45deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-delete-collection {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-delete-collection:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.categories h3 {
    margin-bottom: 15px;
    color: #f39c12;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    padding: 12px 15px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.category-item:hover {
    background: rgba(155, 89, 182, 0.2);
    transform: translateX(5px);
}

.sound-board {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.sound-board h2 {
    margin-bottom: 25px;
    color: #f39c12;
    text-align: center;
}

.sound-grid {
    /* Default: no styling, let category sections handle layout */
}

/* Only apply grid when showing filtered/search results (no category sections) */
.sound-grid.filtered-view {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 1400px) {
    .sound-grid.filtered-view {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1200px) {
    .sound-grid.filtered-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .sound-grid.filtered-view {
        grid-template-columns: 1fr !important;
    }
}

/* Sound Card Styles */
.sound-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 320px;
}

.sound-card:hover {
    transform: translateY(-5px);
    border-color: #e94560;
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.sound-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.sound-card-header h4 {
    color: #f39c12;
    font-size: 1.1em;
    margin: 0;
    flex: 1;
}

.sound-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.sound-card-header h4 {
    color: #f39c12 !important;
    font-size: 1.1em !important;
    margin: 0 !important;
    flex: 1 !important;
}

.add-to-collection-btn {
    background: #ff0000 !important;
    color: #fff !important;
    border: 2px solid #ff0000 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
    z-index: 10 !important;
    position: relative !important;
}

.add-to-collection-btn:hover {
    background: #cc0000 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5) !important;
}

.sound-card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-bottom: 12px;
    line-height: 1.4;
}

.category-tag {
    display: inline-block;
    background: rgba(155, 89, 182, 0.3);
    color: #9b59b6;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 15px;
    border: 1px solid rgba(155, 89, 182, 0.5);
}

/* Tags styling */
.sound-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sound-tags .tag {
    display: inline-block;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    border: 1px solid rgba(243, 156, 18, 0.4);
    transition: all 0.2s ease;
}

.sound-tags .tag:hover {
    background: rgba(243, 156, 18, 0.3);
    transform: scale(1.05);
}

.sound-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sound-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 70px;
}

.play-btn {
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
}

.loop-btn {
    background: rgba(155, 89, 182, 0.8);
    color: white;
}

.sound-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sound-btn:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.upload-section {
    text-align: center;
    margin-top: 30px;
}

/* Upload section styles */
#uploadSection {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

#uploadSection .btn {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    border: 2px solid #8b0000;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

#uploadSection .btn:hover {
    background: linear-gradient(45deg, #dc143c, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #e94560;
    max-width: 500px;
    width: 90%;
}

.modal h3 {
    margin-bottom: 25px;
    color: #f39c12;
    text-align: center;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e94560;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

/* Form improvements for upload modal */
.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.8;
}

.form-group select option {
    background: #2c3e50;
    color: white;
    padding: 5px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #e94560;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f39c12;
}

/* Notification Styles */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

#notification.show {
    transform: translateX(0);
}

#notification.success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    border: 1px solid #27ae60;
}

#notification.error {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 1px solid #c0392b;
}

#notification.info {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: 1px solid #2980b9;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.notification.error {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Active collection item */
.collection-item.active {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
    transform: translateX(5px);
}

/* Admin styles */
.admin-indicator {
    display: inline-block;
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}

.admin-panel {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid #8b0000;
    margin-top: 30px;
}

.admin-panel h3 {
    color: #ff4444;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Edit Sounds Styles */
.sound-edit-item {
    background: rgba(233, 69, 96, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.sound-edit-item:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
}

.sound-edit-info {
    flex: 1;
}

.sound-edit-info h5 {
    margin: 0 0 8px 0;
    color: #e94560;
    font-size: 16px;
    font-weight: bold;
}

.sound-edit-info p {
    margin: 4px 0;
    color: #bbb;
    font-size: 13px;
}

.sound-edit-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid #c0392b;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Search input in edit modal */
#soundSearchInput:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.3);
}

#soundSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    border: 1px solid #e94560;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #e94560 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Collection Management Styles */
.sound-item {
    background: rgba(233, 69, 96, 0.1);
    margin: 8px 0;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sound-item-info {
    flex: 1;
}

.sound-item-info h5 {
    margin: 0 0 4px 0;
    color: #e94560;
    font-size: 14px;
}

.sound-item-info p {
    margin: 0;
    color: #bbb;
    font-size: 12px;
}

.sound-item-actions {
    display: flex;
    gap: 8px;
}

.sound-item-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.sound-item-btn.play {
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
}

.sound-item-btn.remove {
    background: #8b0000;
    color: white;
}

.sound-item-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Add to Collection Modal Styles */
.collection-add-item {
    background: rgba(46, 204, 113, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-add-item:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    transform: translateX(5px);
}

.collection-add-info {
    flex: 1;
}

.collection-add-info h5 {
    margin: 0 0 5px 0;
    color: #2ecc71;
    font-size: 16px;
    font-weight: bold;
}

.collection-add-info p {
    margin: 0;
    color: #bbb;
    font-size: 13px;
}

.collection-add-action {
    flex-shrink: 0;
}

.add-icon {
    font-size: 18px;
    color: #2ecc71;
    transition: transform 0.2s ease;
}

.collection-add-item:hover .add-icon {
    transform: scale(1.2);
}

.modal-section {
    margin-bottom: 20px;
}

/* Enhanced scrollbar styling for the sounds area */
.edit-collection-body::-webkit-scrollbar {
    width: 8px;
}

.edit-collection-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.edit-collection-body::-webkit-scrollbar-thumb {
    background: rgba(233, 69, 96, 0.5);
    border-radius: 4px;
}

.edit-collection-body::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 69, 96, 0.7);
}

/* Enhanced modal title styling */
#editCollectionTitle {
    color: #f39c12;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-align: center;
}

/* Enhanced sounds section header */
.edit-collection-body h4 {
    color: #f39c12;
    margin-bottom: 12px;
    font-size: 1.1em;
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    padding-bottom: 5px;
}

/* Add these styles to your existing styles.css file */

/* Add these styles to your existing styles.css file */

/* Add these styles to your existing styles.css file */

/* Category Management Styles */
.category-admin-item {
    background: rgba(243, 156, 18, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-admin-item:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
    transform: translateX(3px);
}

.category-admin-info {
    flex: 1;
}

.category-admin-info h5 {
    margin: 0 0 8px 0;
    color: #f39c12;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-admin-info p {
    margin: 4px 0;
    color: #bbb;
    font-size: 13px;
    line-height: 1.3;
}

.category-status-active {
    color: #2ecc71;
    font-weight: bold;
}

.category-status-inactive {
    color: #e74c3c;
    font-weight: bold;
}

.category-admin-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Category form specific styles */
#createCategoryModal .form-group input[name="name"] {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
}

#createCategoryModal .form-group input[name="name"]:focus {
    border-color: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.category-form-hint {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    color: #f39c12;
    font-size: 13px;
}

.category-form-hint strong {
    color: #e94560;
}

/* Category search input */
#categorySearchInput {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: white;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#categorySearchInput:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

#categorySearchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Enhanced category management modal */
#manageCategoriesModal .modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    border: 2px solid #f39c12;
    box-shadow: 0 20px 60px rgba(243, 156, 18, 0.2);
}

#manageCategoriesModal h3 {
    color: #f39c12;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
    padding-bottom: 10px;
}

/* Category creation button styling */
.btn-create-category {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: 1px solid #f39c12;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-create-category:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

/* Category emoji picker styling */
.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.emoji-option {
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.emoji-option:hover {
    background: rgba(243, 156, 18, 0.3);
    transform: scale(1.1);
}

/* Sort order input styling */
input[name="sort_order"] {
    max-width: 80px;
}

/* Category validation styling */
.form-validation-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3) !important;
}

.form-validation-success {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3) !important;
}

.validation-message {
    margin-top: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.validation-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.validation-success {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Enhanced category list in sidebar */
.category-item.dynamic {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
    transition: all 0.3s ease;
}

.category-item.dynamic:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.2);
}

/* Category management button in admin section */
#uploadSection .btn:nth-child(4) {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    border: 2px solid #8b0000;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

#uploadSection .btn:nth-child(4):hover {
    background: linear-gradient(45deg, #dc143c, #ff6b6b);
    border-color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

/* Responsive adjustments for category management */
@media (max-width: 900px) {
    .category-admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-admin-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
    
    #manageCategoriesModal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
}

@media (max-width: 600px) {
    .category-admin-info h5 {
        font-size: 14px;
    }
    
    .category-admin-info p {
        font-size: 12px;
    }
    
    .btn-small {
        padding: 4px 8px;
        font-size: 11px;
    }
}
/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .google-btn {
        justify-content: center;
    }
    
    /* Enhanced responsive behavior for edit collection modal */
    .edit-collection-modal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .collection-sound-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .collection-sound-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .sound-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

/* Request Sound Button Styles */
.btn-accent {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    border: 2px solid #9b59b6;
}

.btn-accent:hover {
    background: linear-gradient(45deg, #8e44ad, #7d3c98);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
}

.btn-accent:disabled {
    background: rgba(155, 89, 182, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
    border-color: rgba(155, 89, 182, 0.5);
}

.btn-accent:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Subscriber Tooltip */
.request-sound-wrapper {
    position: relative;
}

.subscriber-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #f39c12;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1000;
    border: 2px solid #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    pointer-events: none;
}

.subscriber-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f39c12;
}

/* Request Sound Modal Styles */
#requestSoundModal textarea {
    transition: all 0.3s ease;
}

#requestSoundModal textarea:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
}

/* User Requests List Styles */
.user-request-item {
    background: rgba(155, 89, 182, 0.1);
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.user-request-item:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
}

.user-request-id {
    color: #9b59b6;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
}

.user-request-content {
    flex: 1;
    min-width: 0;
}

.user-request-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.request-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.request-status.pending {
    background: rgba(243, 156, 18, 0.3);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.5);
}

.request-status.completed {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.request-date {
    color: #999;
    font-size: 11px;
    white-space: nowrap;
}

.request-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Scrollbar for requests list */
#userRequestsList::-webkit-scrollbar {
    width: 6px;
}

#userRequestsList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#userRequestsList::-webkit-scrollbar-thumb {
    background: rgba(155, 89, 182, 0.5);
    border-radius: 3px;
}

#userRequestsList::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 89, 182, 0.7);
}

/* Category Section Styles */
.category-section {
    margin-bottom: 40px;
}

.category-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(233, 69, 96, 0.3);
}

.category-section-header h3 {
    color: #f39c12;
    margin: 0;
    font-size: 1.5em;
}

.btn-view-more {
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.category-sound-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .category-sound-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .category-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .btn-view-more {
        align-self: flex-end;
    }
    
    .category-sound-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .category-sound-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(45deg, #e94560, #f39c12);
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}
/* Responsive layout for smaller screens */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .google-btn {
        justify-content: center;
    }
    
    /* Enhanced responsive behavior for edit collection modal */
    .edit-collection-modal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .collection-sound-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .collection-sound-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
}
/* Admin Request Item Styles */
.admin-request-item {
    background: rgba(155, 89, 182, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.admin-request-item:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
}

.admin-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-request-info h5 {
    color: #9b59b6;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.admin-request-info p {
    margin: 3px 0;
    color: #bbb;
    font-size: 13px;
}

.admin-request-description {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    color: white;
    line-height: 1.5;
    font-size: 14px;
}

.admin-request-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-mark-complete {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-mark-complete:hover {
    background: linear-gradient(45deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.btn-mark-incomplete {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-mark-incomplete:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* Empty state */
.empty-requests {
    text-align: center;
    color: #bbb;
    font-style: italic;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px dashed rgba(155, 89, 182, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .admin-request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-request-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    /* When viewing a collection (filtered view), make cards more compact */
    .sound-grid.filtered-view .sound-card {
        padding: 12px;
    }
    
    .sound-grid.filtered-view .sound-card-header {
        margin-bottom: 10px;
    }
    
    .sound-grid.filtered-view .sound-card-header h4 {
        font-size: 0.95em;
    }
    
    /* Hide add to collection button on mobile in filtered view */
    .sound-grid.filtered-view .add-to-collection-btn {
        display: none;
    }
    
    /* Hide description, tags, and category on mobile in filtered view */
    .sound-grid.filtered-view .sound-card-content p,
    .sound-grid.filtered-view .sound-tags,
    .sound-grid.filtered-view .category-tag {
        display: none;
    }
    
    /* Adjust button sizing on mobile in filtered view */
    .sound-grid.filtered-view .sound-controls {
        gap: 6px;
    }
    
    .sound-grid.filtered-view .sound-btn {
        padding: 6px 10px;
        font-size: 0.8em;
        min-width: 60px;
    }
    
    /* Make grid more compact on mobile */
    .sound-grid.filtered-view {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .sound-grid.filtered-view {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .sound-grid.filtered-view .sound-card {
        padding: 10px;
    }
    
    .sound-grid.filtered-view .sound-card-header h4 {
        font-size: 0.9em;
    }
    
    .sound-grid.filtered-view .sound-btn {
        padding: 5px 8px;
        font-size: 0.75em;
        min-width: 50px;
    }
}

/* Contact Page Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.1);
}

.contact-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    background: linear-gradient(45deg, #e94560, #f39c12, #9b59b6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 35px;
    border: 1px solid rgba(233, 69, 96, 0.2);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #e94560;
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.5));
}

.contact-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #e94560, #f39c12);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.contact-card-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-card-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #e94560, #f39c12);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.email-address {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #e94560;
    border: 2px solid #e94560;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
    background: rgba(233, 69, 96, 0.1);
}

/* Contact Page Responsive Styles */
@media (max-width: 600px) {
    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 25px;
    }

    .contact-card h2 {
        font-size: 1.5rem;
    }

    .contact-icon {
        font-size: 2rem;
    }
}

/* Volume Control Styles */
.volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.volume-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    min-width: auto;
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(to right, 
        rgba(233, 69, 96, 0.3) 0%, 
        rgba(243, 156, 18, 0.5) 50%, 
        rgba(46, 204, 113, 0.5) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e94560, #f39c12);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.5);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.7);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(45deg, #e94560, #f39c12);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.5);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.7);
}

.volume-value {
    font-size: 0.75em;
    font-weight: bold;
    color: #f39c12;
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}

/* Adjust sound card padding to accommodate volume control */
.sound-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(233, 69, 96, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 320px;
}

.sound-card:hover {
    transform: translateY(-5px);
    border-color: #e94560;
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

/* Responsive adjustments for volume control */
@media (max-width: 768px) {
    .volume-control {
        gap: 3px;
        padding: 5px 6px;
        margin: 8px 0;
    }
    
    .volume-label {
        font-size: 0.8em;
    }
    
    .volume-value {
        font-size: 0.7em;
        min-width: 30px;
    }
    
    .volume-slider {
        height: 4px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
}

/* Hide volume controls in filtered/collection view on mobile for compactness */
@media (max-width: 768px) {
    /* Keep volume controls visible on mobile - removed display: none */
    .sound-grid.filtered-view .volume-control {
        /* Volume controls now visible on mobile */
        margin: 10px 0;
    }
}

/* Trial Codes Management Styles */

.status-active {
    color: #2ecc71;
    font-weight: bold;
}

.status-inactive {
    color: #e74c3c;
    font-weight: bold;
}

#manageTrialCodesModal .sound-edit-item {
    transition: all 0.3s ease;
}

#manageTrialCodesModal .sound-edit-item:hover {
    background: rgba(233, 69, 96, 0.15);
    transform: translateX(5px);
}

/* Trial code display styling */
#manageTrialCodesModal .sound-edit-info h5 {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#manageTrialCodesModal .sound-edit-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Trial code action buttons */
.btn-warning {
    background: linear-gradient(45deg, #e67e22, #d35400);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #d35400, #c0392b);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.btn-success:hover {
    background: linear-gradient(45deg, #2ecc71, #3be882);
    transform: translateY(-2px);
}

/* Trial duration input styling */
#trialDurationWeeks {
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

#trialDurationWeeks::-webkit-inner-spin-button,
#trialDurationWeeks::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

/* Info box in create modal */
#createTrialCodeModal .form-group + div {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trial code search input */
#trialCodeSearchInput {
    transition: all 0.3s ease;
}

#trialCodeSearchInput:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    transform: scale(1.02);
}

/* Empty state styling */
#trialCodesList p[style*="text-align: center"] {
    padding: 40px 20px;
    font-size: 1.1em;
}

/* Responsive adjustments for trial codes */
@media (max-width: 768px) {
    #manageTrialCodesModal .modal-content {
        max-width: 95vw;
        padding: 20px;
    }
    
    #manageTrialCodesModal .sound-edit-item {
        flex-direction: column;
        gap: 15px;
    }
    
    #manageTrialCodesModal .sound-edit-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    #manageTrialCodesModal .sound-edit-actions button {
        flex: 1;
        margin: 0 !important;
    }
    
    #trialCodeSearchInput {
        width: 100% !important;
        max-width: 100%;
    }
}