/* styles.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    color: #333;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.requests-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.list-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header > div {
    flex: 1;
    text-align: left;
}

.list-header > div:first-child {
    text-align: left;
}

.list-header > div:nth-child(2) {
    text-align: center;
}

.list-header > div:last-child {
    text-align: right;
}

#new-issue-time {
    font-size: 0.95em;
    opacity: 0.9;
}

.list-item {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

.list-item:hover {
    background: #f8f9fa;
}

.list-item:last-child {
    border-bottom: none;
}

/* ★★★ СВЕЖИЕ ЗАЯВКИ - КРАСНЫЙ ФОН ★★★ */
.list-item.fresh {
    background: #ff2424;
    color: white;
}

.list-item.fresh .number,
.list-item.fresh .contact {
    color: white;
    font-weight: 600;
}

.list-item.fresh:hover {
    background: #fdd;
}

.number {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
    flex-shrink: 0;
}

.contact {
    flex: 1;
    color: #555;
    font-size: 1.1em;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.9;
}

.contact:hover {
    opacity: 1;
    text-decoration: underline;
}

.filter-bar {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    text-align: center;
    font-weight: bold;
}

.filter-bar button {
    margin-left: 10px;
    background: white;
    color: #3498db;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.filter-bar button:hover {
    background: #f0f0f0;
}

.no-data {
    text-align: center;
    padding: 60px;
    color: #7f8c8d;
    font-style: italic;
}

.refresh-btn {
    background: rgba(52, 152, 219, 0.4);
    color: white;
    border: none;
    padding: 12px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
}

.refresh-btn:hover {
    background: #2980b9;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #3498db;
}

.number {
    cursor: pointer;
}

.number:hover {
    opacity: 0.8;
}

.stat-number {
    cursor: pointer;
}