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

body {
    background-color: black;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
    line-height: 1.5;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.preview__header {
    font-size: 12px;
    height: 54px;
    background-color: #262626;
    z-index: 100;
    line-height: 54px;
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.preview__envato-logo a {
    display: inline-block;
    text-indent: -9999px;
    height: 18px;
    width: 152px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152 18"><text x="0" y="14" fill="white" font-size="14" font-weight="bold">ЛОГГЕР</text></svg>');
    background-size: 152px 18px;
}

.preview__actions {
    display: flex;
    gap: 15px;
}

.preview__action--close a {
    color: #999999;
    text-decoration: none;
}

.preview__action--close a:hover {
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.btn-large {
    padding: 18px 24px;
    font-size: 18px;
}

.btn-primary {
    background-color: #2e7d32;
    color: white;
}

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

.btn-danger {
    background-color: #c62828;
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-secondary {
    background-color: #37474f;
    color: white;
}

.btn-secondary:hover {
    background-color: #263238;
}

.btn-info {
    background-color: #1565c0;
    color: white;
}

.btn-info:hover {
    background-color: #0d47a1;
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    background-color: #424242;
    color: white;
}

.btn-success {
    background-color: #2e7d32;
}

/* Карточки */
.welcome-card, .trip-active-card, .auth-card, .form-container {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.welcome-card h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.main-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.trip-info {
    margin: 20px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.label {
    color: #999;
}

.value {
    color: white;
    font-weight: 500;
}

.time-row .value {
    font-size: 24px;
    font-weight: bold;
    color: #4caf50;
}

.action-buttons {
    margin: 20px 0;
}

.action-buttons.secondary {
    display: flex;
    gap: 10px;
}

.action-buttons.secondary .btn-secondary {
    flex: 1;
    text-align: center;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #2e7d32;
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
}

/* Сообщения */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.message-success {
    background-color: #1b5e20;
    color: white;
}

.message-error, .message-warning {
    background-color: #c62828;
    color: white;
}

/* Список планов */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.planned-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.planned-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
}

.planned-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-planned {
    background-color: #1565c0;
}

.status-in_progress {
    background-color: #ff8f00;
}

.status-completed {
    background-color: #2e7d32;
}

.planned-route {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.arrow {
    color: #4caf50;
    font-size: 20px;
}

.planned-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.planned-intermediate {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Активные элементы */
.quick-stats {
    background-color: #0d0d0d;
    border-radius: 10px;
    padding: 16px;
}

.quick-stats h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ccc;
}

.active-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 12px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* Аутентификация */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.auth-footer a {
    color: #4caf50;
    text-decoration: none;
}

.secondary-links {
    text-align: center;
    margin-top: 20px;
}

.secondary-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.secondary-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 568px) {
    .preview__envato-logo a {
        position: absolute;
        top: 20px;
        left: 15px;
        height: 14px;
        width: 118px;
        background-size: 118px 14px;
    }
    
    .preview__actions {
        margin-left: auto;
    }
    
    .preview__action--close a i {
        margin-right: 0;
    }
    
    .preview__action--close a span {
        display: none;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .action-buttons.secondary {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}