/* ============================================
   BASE.CSS - Общие стили для всего приложения
   ============================================ */

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

/* Основные стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #fafafa;
}

/* Кнопки - Основная */
.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Кнопки - Вторичная */
.btn-secondary {
    background: transparent;
    color: #3b82f6;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid #3b82f6;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #f0f7ff;
}

/* Кнопки - Outline */
.btn-outline {
    background: transparent;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Формы - Общие стили */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Helper текст */
.helper-text {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* Flash сообщения */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

@keyframes slideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.flash.success {
    border-left: 4px solid #22c55e;
}

.flash.error {
    border-left: 4px solid #ef4444;
}

.flash.warning {
    border-left: 4px solid #f59e0b;
}

.flash.info {
    border-left: 4px solid #3b82f6;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 600;
    color: #3b82f6;
    letter-spacing: -0.5px;
}
