* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #323D4B;
    --accent-red: #E3000F;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-gray: #E0E0E0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light-gray);
    color: var(--primary-dark);
    line-height: 1.6;
    
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.header-text {
    flex: 1;
}

.header h1 {
    font-size: 1.8em;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: bold;
    color: #fff;
}


.header .subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.95em;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        height: 50px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 3px solid var(--accent-red);
    padding-bottom: 10px;
    display: inline-block;
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* Status Timeline */
.status-timeline {
    margin: 20px 0;
}

.status-item {
    background: var(--light-gray);
    border-left: 4px solid var(--accent-red);
    padding: 20px;
    margin: 15px 0;
    border-radius: 4px;
    position: relative;
}

.status-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 25px;
    width: 20px;
    height: 20px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.status-item h4 {
    color: var(--primary-dark);
    font-size: 1.2em;
    margin-bottom: 8px;
}

.status-item .status-comment {
    color: #666;
    margin: 10px 0;
}

.status-item .status-date {
    color: #999;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Forms */
.form-group {
    margin: 20px 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #C0000D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 0, 15, 0.3);
}

.btn-secondary {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: #252D38;
    transform: translateY(-2px);
}

/* Client Info */
.client-info {
    background: var(--primary-dark);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.client-info h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.client-info p {
    margin: 8px 0;
    color: rgba(255,255,255,0.9);
}

.client-info .label {
    color: rgba(255,255,255,0.6);
    font-size: 0.9em;
}

/* Token Link */
.token-link {
    background: var(--light-gray);
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border-left: 4px solid var(--accent-red);
    margin: 10px 0;
    font-size: 0.9em;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-container h1 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
    
    .card {
        padding: 15px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 1.1em;
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.alert-info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    color: #1976D2;
}

.alert-success {
    background: #E8F5E9;
    border-left: 4px solid #4CAF50;
    color: #388E3C;
}