/* Modern Audio Tools CSS - Ritmofy */
:root {
    --primary: #1DB954;
    --primary-hover: #1ed760;
    --bg-dark: #121212;
    --bg-card: #181818;
    --text-main: #FFFFFF;
    --text-muted: #B3B3B3;
    --border: #282828;
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #000;
    color: var(--text-main);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.at-wrapper {
    min-height: 100vh;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% -20%, #2a2a2a 0%, #000 70%);
}

.at-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.at-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.at-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.at-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.at-badge {
    background: rgba(29, 185, 84, 0.1);
    color: var(--primary);
    border: 1px solid rgba(29, 185, 84, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 12px;
}

/* Tabs */
.at-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 100px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.at-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.at-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.at-tab.active {
    background: var(--bg-card);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.at-tab i {
    font-size: 1rem;
}

/* Grid Layout */
.at-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .at-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.at-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition);
}

.at-card:hover {
    border-color: #404040;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.at-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.at-card-title i {
    color: var(--primary);
}

/* Dropzone */
.at-dropzone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.at-dropzone:hover, .at-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(29, 185, 84, 0.05);
}

.at-dropzone-icon {
    font-size: 3rem;
    color: #404040;
    margin-bottom: 16px;
    transition: var(--transition);
}

.at-dropzone:hover .at-dropzone-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.at-dropzone-text {
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.at-dropzone-sub {
    font-size: 0.875rem;
    color: #666;
}

/* File Info */
.at-file-info {
    background: var(--bg-card);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    z-index: 10;
}

.at-file-name {
    font-weight: 600;
    margin: 12px 0 20px;
    color: #fff;
    word-break: break-all;
    padding: 0 20px;
}

.at-btn-change {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.at-btn-change:hover {
    background: #e74c3c;
    color: #fff;
}

/* Settings */
.settings-panel {
    animation: fadeIn 0.3s ease;
}

.feature-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.feature-item:last-child { margin-bottom: 0; }
.feature-item i { color: var(--primary); }

/* Process Button */
.at-btn-process {
    width: 100%;
    background: var(--primary);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.at-btn-process:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.3);
}

/* Result Area */
.at-result-container {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed var(--border);
    background: rgba(24, 24, 24, 0.5);
}

.at-placeholder i {
    font-size: 4rem;
    color: #333;
    margin-bottom: 24px;
}

.at-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
}

.at-placeholder p {
    color: #666;
    max-width: 300px;
    margin: 0 auto;
}

/* Loader */
.at-loader {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(29, 185, 84, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Success */
.at-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(29, 185, 84, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.at-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 24px;
    transition: var(--transition);
}

.at-btn-download:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Helpers */
.hidden { display: none !important; }
