/* Переменные */
:root {
    --primary: #27ae60;
    --primary-dark: #219a52;
    --danger: #e74c3c;
    --danger-dark: #c0392b;
    --info: #3498db;
    --info-dark: #2980b9;
    --warning: #f39c12;
    --warning-dark: #e67e22;
    --gray: #6c757d;
    --gray-dark: #5a6268;
    --light: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Шапка */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: var(--primary);
}

.header-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-dark);
}

.btn-info {
    background: var(--info);
    color: var(--white);
}

.btn-info:hover {
    background: var(--info-dark);
}

.btn-gray {
    background: var(--gray);
    color: var(--white);
}

.btn-gray:hover {
    background: var(--gray-dark);
}




/* Стили для визитки */
.visitka-card {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.visitka-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 20px;
}

.visitka-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: white;
}

.visitka-header p {
    font-size: 18px;
    opacity: 0.9;
}

.visitka-qr {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.visitka-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.visitka-slogan {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    background-clip: text;           /* стандартное свойство */
    -webkit-background-clip: text;    /* для Safari/Chrome */
    -webkit-text-fill-color: transparent;
    color: transparent;               /* запасной вариант */
    margin: 20px 0 10px;
}

.visitka-sub-slogan {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Новые стили для блока сравнения */
.comparison-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    margin: 20px -20px;
    color: white;
}

.comparison-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.comparison-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.comparison-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
}

.comparison-item.bad {
    border-left: 4px solid #e74c3c;
}

.comparison-item.good {
    border-left: 4px solid #2ecc71;
}

.comparison-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.comparison-item .role {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.comparison-item.bad .role {
    color: #ff9999;
}

.comparison-item.good .role {
    color: #a8e6cf;
}

.comparison-item .description {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

.highlight-block {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    color: white;
    text-align: center;
}

.highlight-block .big-number {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.highlight-block .small-text {
    font-size: 14px;
    opacity: 0.9;
}

.parasite-free {
    background: #27ae60;
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.visitka-footer {
    background: #f5f5f5;
    padding: 20px;
    color: #999;
    font-size: 12px;
}

.visitka-footer a {
    color: #27ae60;
    text-decoration: none;
}

.visitka-footer a:hover {
    text-decoration: underline;
}

.visitka-buttons {
    margin: 30px 0 20px;
}

.visitka-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 5px 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.visitka-btn-primary {
    background: #27ae60;
    color: white;
}

.visitka-btn-primary:hover {
    background: #219a52;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.visitka-domain {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
    letter-spacing: 1px;
}






/* Карточки */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.help-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 3px;
}

.errorlist {
    color: var(--danger);
    font-size: 12px;
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
}

/* Сообщения */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Статусы */
.status-active {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.flex {
    display: flex;
    gap: 10px;
}

.flex-1 {
    flex: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* Подвал */
footer {
    margin-top: auto;
    padding: 20px 0;
    background-color: var(--white);
    border-top: 1px solid #ddd;
}

.footer-content {
    text-align: center;
    color: var(--text-light);
}

.footer-content a {
    color: var(--primary);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-links {
        justify-content: center;
    }
    
    .flex {
        flex-direction: column;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        text-align: center;
    }
}

/* ===== Стили для главной страницы (passenger_home) ===== */

.user-info {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.filters {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.driver-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.driver-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.driver-info p {
    margin: 5px 0;
    color: #666;
}

.driver-address {
    font-weight: bold;
    color: #2c3e50;
}

.expires {
    font-size: 0.9em;
    color: #e74c3c;
}

.call-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.call-btn:hover {
    background-color: #219a52;
}

.no-drivers {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    color: #666;
}

.region-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 10px;
}

.region-spb {
    background-color: #3498db;
    color: white;
}

.region-lo {
    background-color: #e67e22;
    color: white;
}

.last-update {
    text-align: right;
    font-size: 0.8em;
    color: #999;
    margin-top: 10px;
}

/* Специфичные цвета для разных типов пользователей */
.user-info.passenger {
    background: #d1ecf1;
}

.user-info.warning {
    background: #fff3cd;
}

.user-info.driver-offline {
    background: #e8f5e9;
}

.user-info.driver-online {
    background: #d4edda;
}

/* В style.css */
.btn-passenger {
    background: #3498db;
    color: white;
}
.btn-passenger:hover {
    background: #2980b9;
}

.btn-driver {
    background: #27ae60;
    color: white;
}
.btn-driver:hover {
    background: #219a52;
}

@media (min-width: 768px) {
    .header-links .btn {
        padding: 8px 15px !important;
    }
    .header-links .btn::before {
        display: none;
    }
    .btn-passenger::after {
        content: "Пассажир";
        margin-left: 5px;
    }
    .btn-driver::after {
        content: "Водитель";
        margin-left: 5px;
    }
}

