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

body {
    font-family: 'Poppins', sans-serif;
    background: #fdfdfd;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

.container {
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: all 0.6s ease;
    padding: 20px;
}

.container.files-loaded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container.files-loaded .action-container {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.drop-section {
    transition: all 0.6s ease;
}

.drop-section.hidden {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    pointer-events: none;
    margin-bottom: 0;
}

.drop-title {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #333;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInDown 1s ease-out forwards;
}

.drop-zone {
    width: 240px;
    height: 240px;
    border: 3px dashed #ccc;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    background: #f5f8f8;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.drop-zone:hover {
    transform: scale(1.05);
    border-color: #dcac6f;
    background: #f0f5f5;
}

.drop-zone.dragover {
    border-color: #dcac6f;
    background: #f0f5f5;
    transform: scale(1.08);
}

.drop-icon {
    font-size: 4rem;
    color: #666;
    margin-bottom: 10px;
}

.drop-text {
    color: #666;
    font-size: 1rem;
    font-weight: 300;
}

.file-input {
    display: none;
}

.action-container {
    position: relative;
    top: -150px; /* Half of your dropzone height to pull it up */
    margin-top: 0;
}

/* Enhanced Glassmorphism with perfect transparency */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Audio Player & Playlist */
.audio-player, .playlist-player {
    padding: 30px;
    width: 450px;
    display: none;
    animation: slideInUp 0.6s ease-out;
}

.album-art {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.track-info {
    margin-bottom: 20px;
    min-height: 60px;
}

.track-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.track-artist {
    color: #666;
    font-size: 1rem;
    margin-bottom: 5px;
}

.track-album {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.progress-container {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #dcac6f;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 8px;
}

.control-btn:hover {
    color: #dcac6f;
    transform: scale(1.1);
}

.play-pause {
    font-size: 2rem;
}

.repeat-active {
    color: #dcac6f;
}

/* Image Converter */
.image-converter {
    padding: 30px;
    max-width: 420px;
    display: none;
    animation: slideInUp 0.6s ease-out;
}

.preview-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.quality-control {
    margin: 25px 0;
    text-align: left;
}

.quality-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.quality-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    margin: 15px 0;
    cursor: pointer;
    appearance: none;
}

.quality-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(220, 172, 111, 0.3);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(220, 172, 111, 0.3);
}

.convert-btn, .download-btn {
    background: #dcac6f;
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 8px;
}

.convert-btn:hover, .download-btn:hover {
    background: #c99a5a;
    transform: translateY(-2px);
}

/* Zip Creator & Image Collage */
.zip-creator, .collage-creator {
    padding: 30px;
    max-width: 450px;
    display: none;
    animation: slideInUp 0.6s ease-out;
}

.zip-title, .collage-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.file-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.file-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(143, 146, 149, 0.2);
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item i {
    margin-right: 10px;
    color: #dcac6f;
    width: 20px;
}

/* Collage Creator Styles */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.collage-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    min-height: 200px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.collage-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.collage-item:hover {
    transform: scale(1.05);
    border-color: #dcac6f;
}

.collage-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-item .item-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collage-item:hover .item-controls {
    opacity: 1;
}

.collage-item .item-controls i {
    color: white;
    font-size: 0.8rem;
}

.collage-settings {
    margin: 20px 0;
    text-align: left;
}

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

.setting-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.setting-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.setting-input::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(220, 172, 111, 0.3);
}

.setting-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(220, 172, 111, 0.3);
}

/* Playlist Styles */
.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.playlist-info {
    color: #666;
    font-size: 0.9rem;
}

.playlist-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.playlist-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(143, 146, 149, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: rgba(220, 172, 111, 0.1);
}

.playlist-item.active {
    background: rgba(220, 172, 111, 0.2);
    border-left: 4px solid #dcac6f;
}

.playlist-item-info {
    flex: 1;
    text-align: left;
}

.playlist-item-title {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.playlist-item-duration {
    color: #888;
    font-size: 0.8rem;
}

.playlist-item-number {
    color: #dcac6f;
    font-weight: 600;
    margin-right: 12px;
    min-width: 20px;
}

.shuffle-active {
    color: #dcac6f !important;
}

.playlist-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.playlist-controls .control-btn {
    font-size: 1.3rem;
}

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

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Clean geometric particles */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #dcac6f;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

h1 {
    position: fixed;
    bottom: 25px;
    left: 25px;
    color: #333;
    font-size: 0.5rem;
    
}
body.dark-mode h1 {
    color: white;
}

.reset-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #e6b87a;
}

/* Theme Toggle Button */
.theme-btn {
    position: fixed;
    top: 25px;
    right: 155px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 12px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #e6b87a;
}

/* Magic Sparkle Controls */
.magic-btn {
    position: fixed;
    top: 25px;
    right: 90px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
}

.magic-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    color: #e6b87a;
}

.magic-btn.active {
    background: rgba(220, 172, 111, 0.2);
    border-color: rgba(220, 172, 111, 0.4);
}

.sparkle-dropdown {
    position: fixed;
    top: 75px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 25px;
    min-width: 280px;
    z-index: 999;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.sparkle-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.sparkle-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 65px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    backdrop-filter: blur(25px);
}

.sparkle-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.sparkle-control-group {
    margin-bottom: 18px;
}

.sparkle-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.sparkle-control-input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(224, 224, 224, 0.8);
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.sparkle-control-input::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(220, 172, 111, 0.4);
    transition: all 0.3s ease;
}

.sparkle-control-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(220, 172, 111, 0.6);
}

.sparkle-control-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 8px rgba(220, 172, 111, 0.4);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.2);
}

.preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
}

.sparkle-preset-btn {
    background: rgba(220, 172, 111, 0.15);
    border: 1px solid rgba(220, 172, 111, 0.3);
    color: #333;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.sparkle-preset-btn:hover {
    background: rgba(220, 172, 111, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 172, 111, 0.2);
}

/* Progress indicator for file processing */
.progress-indicator {
    display: none;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(220, 172, 111, 0.3);
    border-radius: 50%;
    border-top-color: #dcac6f;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Video Player Styles */
.video-player {
    padding: 30px;
    max-width: 600px;
    display: none;
    animation: slideInUp 0.6s ease-out;
}

.video-info {
    margin-bottom: 20px;
    text-align: center;
}

.video-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-size {
    color: #666;
    font-size: 0.9rem;
}

.video-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    border-radius: 15px;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.control-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

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

.volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(220, 172, 111, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dcac6f;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(220, 172, 111, 0.3);
}

.volume-value {
    color: #666;
    font-size: 0.8rem;
    min-width: 35px;
}

/* Fullscreen video styles */
.fullscreen-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.fullscreen-video .video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
    max-height: calc(100vh - 200px);
}

.fullscreen-video .video-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
}

.fullscreen-video .video-info {
    color: white;
}

.fullscreen-video .video-title {
    color: white;
}

.fullscreen-video .video-size {
    color: rgba(255, 255, 255, 0.7);
}

.fullscreen-video .progress-container {
    width: 100%;
    max-width: 800px;
}

.fullscreen-video .time-display span {
    color: rgba(255, 255, 255, 0.8);
}

.fullscreen-video .video-controls {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
}

.fullscreen-video .control-btn {
    color: white;
}

.fullscreen-video .control-btn:hover {
    color: #dcac6f;
}

.fullscreen-video .volume-value {
    color: rgba(255, 255, 255, 0.8);
}

/* Text to PDF Converter Styles */
.text-to-pdf {
    padding: 30px;
    max-width: 500px;
    display: none;
    animation: slideInUp 0.6s ease-out;
}

.text-info {
    margin-bottom: 20px;
    text-align: center;
}

.text-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.text-details {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.text-preview-container {
    margin-bottom: 25px;
}

.text-preview {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #333;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.text-preview:focus {
    border-color: rgba(220, 172, 111, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(220, 172, 111, 0.1);
}

.text-preview::placeholder {
    color: #999;
    font-style: italic;
}

.pdf-settings {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.settings-header {
    margin-bottom: 15px;
    text-align: center;
}

.settings-header h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.settings-header i {
    margin-right: 8px;
    color: #dcac6f;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

.setting-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #333;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-select:focus {
    border-color: rgba(220, 172, 111, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(220, 172, 111, 0.1);
}

.setting-select option {
    background: #fff;
    color: #333;
    padding: 8px;
}

.preset-btn {
    background: rgba(220, 172, 111, 0.15);
    border: 1px solid rgba(220, 172, 111, 0.3);
    color: #333;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.preset-btn:hover {
    background: rgba(220, 172, 111, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 172, 111, 0.2);
}

.preset-btn i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.conversion-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.conversion-success {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: slideInUp 0.4s ease-out;
}

.conversion-success i {
    margin-right: 8px;
    color: #4caf50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-player {
        max-width: 100%;
        padding: 20px;
    }
    
    .video-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .volume-control {
        width: 100%;
        max-width: 250px;
    }
    
    .fullscreen-video {
        padding: 20px;
    }
}

/* Responsive adjustments for text converter */
@media (max-width: 768px) {
    .text-to-pdf {
        max-width: 100%;
        padding: 20px;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .conversion-actions {
        flex-direction: column;
    }
    
    .text-preview {
        min-height: 150px;
        font-size: 0.85rem;
    }
}

/* DARK MODE STYLES */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .drop-title {
    color: #e0e0e0;
}

body.dark-mode .drop-zone {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .drop-zone:hover {
    background: #333;
    border-color: #dcac6f;
}

body.dark-mode .drop-zone.dragover {
    background: #333;
}

body.dark-mode .drop-icon {
    color: #aaa;
}

body.dark-mode .drop-text {
    color: #aaa;
}

body.dark-mode .glass-panel {
    background: rgba(40, 40, 40, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .glass-panel::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
}

body.dark-mode .track-title,
body.dark-mode .video-title,
body.dark-mode .text-title,
body.dark-mode .zip-title,
body.dark-mode .collage-title {
    color: #e0e0e0;
}

body.dark-mode .track-artist,
body.dark-mode .track-album,
body.dark-mode .video-size,
body.dark-mode .text-details,
body.dark-mode .playlist-info {
    color: #aaa;
}

body.dark-mode .control-btn {
    color: #e0e0e0;
}

body.dark-mode .control-btn:hover {
    color: #dcac6f;
}

body.dark-mode .time-display span,
body.dark-mode .volume-value {
    color: #aaa;
}

body.dark-mode .file-list {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .file-item {
    color: #bbb;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .playlist-container {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .playlist-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .playlist-item:hover {
    background: rgba(220, 172, 111, 0.15);
}

body.dark-mode .playlist-item.active {
    background: rgba(220, 172, 111, 0.25);
}

body.dark-mode .playlist-item-title {
    color: #e0e0e0;
}

body.dark-mode .playlist-item-duration {
    color: #999;
}

body.dark-mode .collage-preview {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .setting-label,
body.dark-mode .quality-label,
body.dark-mode .sparkle-control-label {
    color: #e0e0e0;
}

body.dark-mode .text-preview {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

body.dark-mode .text-preview:focus {
    border-color: rgba(220, 172, 111, 0.5);
    background: rgba(40, 40, 40, 0.12);
}

body.dark-mode .text-preview::placeholder {
    color: #777;
}

body.dark-mode .pdf-settings {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .settings-header h4 {
    color: #e0e0e0;
}

body.dark-mode .setting-select {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
}

body.dark-mode .setting-select:focus {
    border-color: rgba(220, 172, 111, 0.5);
    background: rgba(40, 40, 40, 0.12);
}

body.dark-mode .setting-select option {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .theme-btn,
body.dark-mode .magic-btn,
body.dark-mode .reset-btn {
    background: rgba(40, 40, 40, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode .theme-btn:hover,
body.dark-mode .magic-btn:hover,
body.dark-mode .reset-btn:hover {
    background: rgba(60, 60, 60, 0.2);
    color: #e6b87a;
}

body.dark-mode .sparkle-dropdown {
    background: rgba(40, 40, 40, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .sparkle-dropdown::before {
    background: rgba(40, 40, 40, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .sparkle-title {
    color: #e0e0e0;
}

body.dark-mode .progress-bar {
    background: #444;
}

body.dark-mode .quality-slider,
body.dark-mode .setting-input,
body.dark-mode .sparkle-control-input,
body.dark-mode .volume-slider {
    background: rgba(100, 100, 100, 0.8);
}

body.dark-mode .video-container {
    background: #000;
}

body.dark-mode .conversion-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4caf50;
}

body.dark-mode .sparkle-preset-btn,
body.dark-mode .preset-btn {
    background: rgba(220, 172, 111, 0.2);
    border: 1px solid rgba(220, 172, 111, 0.4);
    color: #e0e0e0;
}

body.dark-mode .sparkle-preset-btn:hover,
body.dark-mode .preset-btn:hover {
    background: rgba(220, 172, 111, 0.3);
}

body.dark-mode .convert-btn,
body.dark-mode .download-btn {
    background: #dcac6f;
    color: #1a1a1a;
}

body.dark-mode .convert-btn:hover,
body.dark-mode .download-btn:hover {
    background: #c99a5a;
    color: #1a1a1a;
}

body.dark-mode .fullscreen-video .video-info {
    color: white;
}

body.dark-mode .fullscreen-video .video-title {
    color: white;
}

body.dark-mode .fullscreen-video .video-size {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .fullscreen-video .time-display span {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .fullscreen-video .video-controls {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .fullscreen-video .control-btn {
    color: white;
}

body.dark-mode .fullscreen-video .control-btn:hover {
    color: #dcac6f;
}

body.dark-mode .fullscreen-video .volume-value {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .progress-indicator {
    color: #aaa;
}

body.dark-mode .spinner {
    border: 2px solid rgba(220, 172, 111, 0.3);
    border-top-color: #dcac6f;
}