/* at6tts - Style System */

:root {
    --bg-main: #0b0a14;
    --bg-card: rgba(18, 17, 34, 0.65);
    --bg-card-hover: rgba(26, 25, 49, 0.85);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-color-focus: rgba(99, 102, 241, 0.45);
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-gradient-start: #00f2fe;
    --text-gradient-end: #8a3ffc;
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent-cyan: #00f2fe;
    --accent-purple: #8a3ffc;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
    --font-sans: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(138, 63, 252, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.45);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }
.flex-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 25px;
    width: 100%;
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
    background: rgba(245, 158, 11, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px;
    border-radius: 6px;
    width: 38px;
    height: 38px;
}
.btn-icon:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

/* Authentication Interface */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 10;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: border-color var(--transition-speed) ease;
}
.auth-card:hover {
    border-color: var(--border-color-focus);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo h1, .logo h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo h1 span, .logo h2 span {
    color: var(--accent-cyan);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}
.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.auth-switch {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
}
.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) ease;
}
.auth-switch a:hover {
    color: var(--accent-cyan);
}

/* Honeypot Spam Protection Styling (Hidden completely) */
.hp-wrapper {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* App Main Dashboard Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styling */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 9, 20, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all var(--transition-speed) ease;
}
.nav-item i {
    font-size: 1.1rem;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}
.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
    border-left: 3px solid var(--primary);
    padding-left: 15px;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    font-size: 2.2rem;
    color: var(--primary);
}
.user-info {
    display: flex;
    flex-direction: column;
}
.user-info #user-display-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.user-info #user-role-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 8px;
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

/* Content Area */
.content-wrapper {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
    overflow-y: auto;
}

.dashboard-view {
    display: none;
    animation: fadeIn 0.4s ease;
}
.dashboard-view.active {
    display: block;
}

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

.view-header {
    margin-bottom: 35px;
}
.view-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.view-header p {
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all var(--transition-speed) ease;
}
.card:hover {
    border-color: var(--border-color-focus);
    background: var(--bg-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.card-header i {
    font-size: 1.4rem;
}
.card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* Code Snippet Pre elements */
.code-block {
    background: #06050b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 18px;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #e5e7eb;
}

.hint-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* API input groups with copy buttons */
.api-field {
    margin-bottom: 18px;
}
.api-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.copy-input-group {
    display: flex;
    gap: 8px;
}
.copy-input-group input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.85rem;
}
.copy-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.action-row {
    margin-top: 25px;
}

/* Progress Radial (Usage indicator) */
.progress-radial-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.6s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring__circle-bg {
    stroke: rgba(255, 255, 255, 0.03);
}

.progress-radial-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.percent-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
}
.percent-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}
.stat-box {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.stat-val {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent-cyan), #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.policy-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.policy-list li i {
    font-size: 1.1rem;
    margin-top: 3px;
}
.policy-list li strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}
.policy-list li p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Upload & Dropzone Layout */
.upload-container {
    padding: 30px;
}

.dropzone-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.02);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
}

.upload-icon {
    font-size: 2.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color var(--transition-speed) ease;
}
.dropzone:hover .upload-icon, .dropzone.dragover .upload-icon {
    color: var(--accent-cyan);
}

.dropzone h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.dropzone p {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.format-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.hidden-input {
    display: none;
}

.selected-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 8px;
}
.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
}
.file-icon {
    font-size: 1.6rem;
    color: var(--primary);
}
.file-meta {
    display: flex;
    flex-direction: column;
}
.file-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.result-column {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    padding-left: 25px;
    min-height: 300px;
}

@media (max-width: 768px) {
    .result-column {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 25px;
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.result-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.transcription-status-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.status-state {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    color: var(--text-muted);
}
.status-state i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.08);
}
.status-state p {
    font-size: 0.95rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sub-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.transcription-textarea {
    flex-grow: 1;
    width: 100%;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
}
.transcription-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Tables (Admin panel) */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.admin-table th, .admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.admin-table th {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.admin-table .badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-admin {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.2);
}
.badge-user {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #121124;
    border: 1px solid var(--border-color-focus);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlide {
    from { transform: scale(0.9) translateY(20px); }
    to { transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
}

.modal-body {
    padding: 25px 20px;
}

.danger-alert {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 6px;
    padding: 15px;
    font-size: 0.85rem;
    line-height: 1.4;
    display: flex;
    gap: 10px;
}
.danger-alert i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.modal-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    max-width: 350px;
    width: 100%;
}

.toast {
    background: #121124;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.3s ease 4.7s forwards;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100px); opacity: 0; }
}

/* Responsive Scaling */
@media (max-width: 900px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
        align-items: center;
    }
    .logo h2, .user-info, .sidebar-footer #btn-logout span {
        display: none;
    }
    .logo-icon {
        font-size: 1.8rem;
    }
    .nav-item {
        padding: 12px;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }
    .nav-item span {
        display: none;
    }
    .nav-item.active {
        border-left: none;
        background: var(--primary);
        color: white;
    }
    .content-wrapper {
        margin-left: 80px;
        padding: 20px;
    }
}

/* Legal Footer & Legal Modal Styles */
.auth-legal-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.auth-legal-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.auth-legal-footer a:hover {
    color: var(--primary);
}

.sidebar-legal-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.sidebar-legal-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
.sidebar-legal-footer a:hover {
    color: var(--primary);
}

.legal-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.legal-section h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }

.modal-tabs .btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
    border-color: transparent;
}

/* Audio Recording Controls */
.record-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}
.record-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #fca5a5;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}
.recording-pulse {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
.btn-recording {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
}

/* Smartphone Mobile Responsiveness Härtung (max-width: 600px) */
@media (max-width: 600px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 65px;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 10px !important;
        margin: 0 !important;
        z-index: 1000;
        background: #0d0c18 !important;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
        border-radius: 0 !important;
    }
    
    .sidebar-header, .sidebar-legal-footer {
        display: none !important;
    }
    
    .sidebar-menu {
        flex-direction: row !important;
        justify-content: space-around !important;
        width: 80% !important;
        margin: 0 !important;
        gap: 2px !important;
    }
    
    .nav-item {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 6px 0 !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border-left: none !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 0 !important;
        gap: 2px !important;
        flex-grow: 1;
    }
    
    .nav-item i {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    .nav-item span {
        display: block !important;
        font-size: 0.6rem !important;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .nav-item.active {
        border-bottom: 2px solid var(--accent-cyan) !important;
        color: var(--accent-cyan) !important;
        background: transparent !important;
    }
    
    /* Footer & Logout Button */
    .sidebar-footer {
        display: flex !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        width: 20% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .user-badge {
        display: none !important;
    }
    
    #btn-logout {
        padding: 6px 0 !important;
        background: transparent !important;
        color: var(--danger) !important;
        border: none !important;
        font-size: 0.6rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
    }
    
    #btn-logout i {
        font-size: 1rem !important;
        margin: 0 !important;
    }
    
    #btn-logout span {
        display: block !important;
        font-size: 0.6rem !important;
    }
    
    /* Adjust main content wrapper */
    .content-wrapper {
        margin-left: 0 !important;
        margin-bottom: 65px !important; /* leaves space for bottom navigation */
        padding: 15px !important;
        width: 100% !important;
    }
    
    /* Collapse Grid Layouts */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .usage-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    /* Make headers smaller for smaller devices */
    .view-header h1 {
        font-size: 1.4rem !important;
    }
    
    .view-header p {
        font-size: 0.8rem !important;
    }
    
    /* Radial Usage Meter Scaling */
    .radial-progress-container {
        transform: scale(0.95);
        margin: 10px 0;
    }
    
    /* Auth Cards padding adjustment */
    .auth-card {
        padding: 25px 15px !important;
        border-radius: 12px;
    }
    
    /* Hide some details in tables to avoid layout break */
    .admin-table th:nth-child(3), 
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) {
        display: none !important; /* Hide IP and Reg date on small screen */
    }
    
    /* Style admin action column in table */
    .action-buttons-td {
        padding: 8px 4px !important;
    }
}
