:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #17a2b8;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: headerFloat 20s linear infinite;
}

@keyframes headerFloat {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    margin-bottom: 15px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

/* Server info */
.server-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.server-info span {
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.reconnect-btn {
    margin-right: 10px;
    padding: 5px 10px;
}

/* Tabs */
.tabs {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tab {
    padding: 18px 25px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--primary);
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.tab i {
    margin-left: 8px;
    font-size: 18px;
}

.tab:hover {
    background: linear-gradient(to right, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
}

.tab.active {
    border-bottom: 4px solid var(--secondary);
    color: var(--secondary);
    background: linear-gradient(to right, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
}

/* Tab content */
.tab-content {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 5px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #219653);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #219653, var(--success));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #e67e22);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, var(--warning));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, var(--danger));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #138496);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, var(--info));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

.btn-secondary {
    background: #bdc3c7;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #95a5a6;
}

.btn-small {
    padding: 8px 15px;
    font-size: 13px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid var(--secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-card i {
    font-size: 50px;
    color: var(--secondary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card h3 {
    font-size: 42px;
    margin: 15px 0;
    color: var(--primary);
    font-weight: 700;
}

.stat-card p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Dashboard */
.advanced-controls {
    background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(41,128,185,0.02));
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 2px dashed var(--secondary);
}

.advanced-controls h3 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-tools {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.system-info {
    font-size: 14px;
    line-height: 1.8;
}

.recent-activity {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.empty-activity {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-activity i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Screens */
.screens-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.screen-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    position: relative;
}

.screen-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.screen-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.screen-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.screen-card:hover .screen-header::before {
    transform: translateX(100%);
}

.screen-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.screen-status {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 0 15px currentColor;
}

.online {
    background: var(--success);
    color: var(--success);
}

.offline {
    background: var(--danger);
    color: var(--danger);
}

.playing {
    background: var(--warning);
    color: var(--warning);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 10px transparent;
    }
}

.screen-body {
    padding: 25px;
}

.screen-info {
    margin-bottom: 20px;
}

.screen-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screen-info strong {
    color: var(--primary);
    min-width: 100px;
    display: inline-block;
}

.screen-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.playlist-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

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

.playlist-item.current {
    background: linear-gradient(to right, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-left-color: var(--success);
}

.playlist-item i {
    margin-left: 12px;
    color: var(--secondary);
    font-size: 18px;
}

/* Upload */
.tab-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.upload-area {
    border: 3px dashed var(--secondary);
    border-radius: 15px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.02));
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05), rgba(33, 150, 83, 0.02));
    transform: translateY(-5px);
}

.upload-area i {
    font-size: 60px;
    color: var(--secondary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-note {
    color: #666;
    margin-top: 10px;
}

.selected-file {
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary);
}

.upload-screens-toolbar {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.upload-options {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.upload-submit {
    margin-top: 35px;
    text-align: center;
}

.upload-result {
    margin-top: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.checkbox-group {
    display: grid;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

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

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-item label {
    flex: 1;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Content list */
.content-list {
    display: grid;
    gap: 20px;
    margin-top: 25px;
}

.content-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    gap: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.content-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.content-info {
    flex: 1;
}

.content-info h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 18px;
}

.content-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.setting-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.setting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.setting-card h4 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.setting-block {
    margin: 20px 0;
}

.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.setting-field {
    display: block;
    margin: 12px 0;
}

.setting-field span {
    display: block;
    margin-bottom: 5px;
}

.db-info-box {
    background: linear-gradient(135deg, rgba(52,152,219,0.1), rgba(41,128,185,0.05));
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.db-status-ok {
    color: var(--success);
}

.warning-box {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.small-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.tools-grid {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 35px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 35px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--success), #219653);
}

input:checked + .toggle-slider:before {
    transform: translateX(35px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--danger);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

.modal-settings-box {
    background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(41,128,185,0.02));
    padding: 20px;
    border-radius: 10px;
}

.modal-footer-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 40px;
    right: 40px;
    padding: 20px 30px;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    display: none;
    animation: slideInRight 0.5s ease, fadeOutToast 0.5s ease 3.5s forwards;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

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

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

.toast.success {
    background: linear-gradient(135deg, var(--success), #219653);
    border-left: 5px solid rgba(255,255,255,0.5);
}

.toast.error {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    border-left: 5px solid rgba(255,255,255,0.5);
}

.toast.info {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border-left: 5px solid rgba(255,255,255,0.5);
}

/* Loading overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    gap: 25px;
    backdrop-filter: blur(10px);
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 18px;
    font-weight: 500;
}

.loading-progress {
    margin-top: 10px;
    color: #ccc;
    font-size: 14px;
}

/* Pagination */
.content-pagination-wrapper {
    text-align: center;
    margin-top: 30px;
}

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

/* Search & filter */
.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }

    .screens-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

    .tab {
        padding: 15px;
        min-width: 100%;
    }

    .screens-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .server-info {
        flex-direction: column;
        align-items: center;
    }

    .screen-actions {
        flex-direction: column;
    }

    .content-item {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .content-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .server-info span {
        font-size: 12px;
        padding: 8px 15px;
    }

    .tab {
        padding: 12px 10px;
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .toast {
        right: 20px;
        left: 20px;
        max-width: none;
    }
}