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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0f0f0f;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Новый минималистичный хедер */
.minimal-header {
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 0;
}

.minimal-header h1 {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

/* Главный контейнер загрузки */
.main-upload-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.upload-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.upload-area {
    border: 2px dashed #444;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1f1f1f;
    margin-bottom: 25px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #667eea;
    background: #252525;
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #fff;
}

.upload-area p {
    color: #888;
    font-size: 0.9em;
    line-height: 1.4;
}

.upload-hint {
    text-align: center;
    color: #666;
    font-size: 0.85em;
    margin-top: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
    font-size: 0.9em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn i {
    font-size: 14px;
}

/* Правила */
.rules {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.rules h3 {
    color: #ccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.rules ul {
    list-style: none;
    padding-left: 0;
}

.rules li {
    padding: 6px 0;
    color: #888;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules li i {
    font-size: 12px;
    width: 16px;
}

/* Превью изображения */
.image-preview {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Уведомления */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: #f59e0b;
}

/* Страница успеха */
.success-page {
    text-align: center;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.url-container {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.url-box {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #ccc;
}

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

/* Админ панель */
.admin-panel {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    border: 1px solid #2a2a2a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #1f1f1f;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
}

.stat-card h3 {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 2em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.image-card {
    background: #1f1f1f;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}

.image-info {
    padding: 20px;
}

.image-info h3 {
    margin-bottom: 12px;
    color: #ccc;
    font-size: 13px;
    word-break: break-all;
    line-height: 1.4;
}

.stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.btn-group {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
    flex: 1;
}

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

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .upload-card {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .minimal-header h1 {
        font-size: 1.5em;
    }
}

/* Уведомление о вставке */
.paste-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
    color: #ccc;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 10px;
}

.paste-notification.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

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