/* =====================
   ОСНОВНИ НАСТРОЙКИ
   ===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #2563eb;
}

a:hover {
    color: #1d4ed8;
}

/* =====================
   НАВИГАЦИЯ
   ===================== */
.navbar {
    background: #1e3a5f;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.navbar-brand:hover {
    color: #93c5fd;
}

.navbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-company {
    color: #93c5fd;
    font-size: 14px;
}

.navbar-logout {
    color: #93c5fd;
    font-size: 14px;
}

.navbar-logout:hover {
    color: white;
}

/* =====================
   ТРИАЛ БАНЕР
   ===================== */
.trial-banner {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trial-banner span {
    color: #1e40af;
    font-size: 14px;
}

.trial-banner a {
    background: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
}

.trial-banner a:hover {
    background: #1d4ed8;
    color: white;
}

/* =====================
   КОНТЕЙНЕР
   ===================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* =====================
   ФОРМИ
   ===================== */
.form-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    margin: 40px auto;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.form-box h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-box p.sub {
    color: #666;
    margin-bottom: 28px;
    font-size: 14px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 18px;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* =====================
   БУТОНИ
   ===================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: #333;
}

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

/* =====================
   СЪОБЩЕНИЯ
   ===================== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* =====================
   МОДУЛИ (DASHBOARD)
   ===================== */
.modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.module-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
    display: block;
    color: inherit;
}

.module-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: inherit;
}

.module-card .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.module-card h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.module-card p {
    font-size: 12px;
    color: #888;
}

.module-card.soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* =====================
   МОБИЛНО (Mobile First)
   ===================== */
@media (max-width: 600px) {
    .navbar {
        padding: 12px 16px;
    }

    .form-box {
        padding: 24px 16px;
        margin: 20px auto;
    }

    .modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .trial-banner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
