* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f5f7fa; color: #333; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.navbar { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 1rem 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar a { color: white; text-decoration: none; }
.menu { list-style: none; display: flex; gap: 2rem; }

.main-content { padding: 2rem 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.data-table { width: 100%; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.data-table th { background: #f8f9fa; padding: 1rem; text-align: left; }
.data-table td { padding: 1rem; border-bottom: 1px solid #dee2e6; }
.data-table tr:hover { background: #f8f9fa; }
.expiring-soon { background: #fff3cd !important; }

.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.875rem; color: white; }
.badge-success { background: #28a745; }
.badge-warning { background: #ffc107; color: #333; }

.btn { display: inline-block; padding: 0.5rem 1rem; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; }
.btn-primary { background: #667eea; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-info { background: #17a2b8; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 5px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; background: white; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; }
.form-container { background: white; padding: 2rem; border-radius: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; padding: 1.5rem; border-radius: 8px; text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: bold; color: #667eea; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: white; margin: 10% auto; padding: 2rem; border-radius: 8px; width: 90%; max-width: 600px; position: relative; }
.close { position: absolute; right: 1rem; top: 1rem; font-size: 2rem; cursor: pointer; }

.timeline { position: relative; padding: 2rem 0; }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 2rem; }
.timeline-marker { position: absolute; left: 11px; width: 20px; height: 20px; border-radius: 50%; }
.timeline-content { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.chart-container { background: white; padding: 2rem; border-radius: 8px; margin-bottom: 2rem; }

.login-page { background: linear-gradient(135deg, #667eea, #764ba2); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-container { background: white; padding: 3rem; border-radius: 10px; width: 90%; max-width: 450px; }
.test-info { margin-top: 2rem; padding: 1rem; background: #f8f9fa; border-radius: 5px; }

.cell-input { width: 100%; padding: 0.5rem; border: 2px solid #667eea; border-radius: 4px; }
.editable { cursor: pointer; }
.editable:hover { background: #e3f2fd; }

.alert { padding: 1rem; border-radius: 5px; margin-bottom: 1rem; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Индикаторы статуса прав */
.status-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin: 0 3px;
    cursor: help;
    transition: transform 0.2s ease;
}

.status-dot:hover {
    transform: scale(1.15);
}

.status-active {
    background: #28a745; /* Зеленый */
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.status-expired {
    background: #dc3545; /* Красный */
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.status-future {
    background: #6c757d; /* Серый */
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}