/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

h1 {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin: 5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #45a049, #3d8b40);
}

.btn-danger {
    background: linear-gradient(45deg, #d32f2f, #b71c1c);
}

.btn-danger:hover {
    background: linear-gradient(45deg, #b71c1c, #8b0000);
}

.btn-secondary {
    background: linear-gradient(45deg, #757575, #616161);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #616161, #424242);
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-nav {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.participants-table th,
.participants-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.participants-table th {
    background-color: #4CAF50;
    color: white;
}

.participants-table tr:hover {
    background-color: #f5f5f5;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1em;
}

.stat-card .number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d32f2f;
}

.logout-btn:hover {
    background: #b71c1c;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .admin-nav {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Дополнительные стили для почтовой панели */
.email-result-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s;
}

.email-result-item.success {
    border-left: 5px solid #28a745;
    background: #f8fff9;
}

.email-result-item.error {
    border-left: 5px solid #dc3545;
    background: #fff8f8;
}

.email-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.email-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-all;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card-small {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin: 5px 0;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

/* Анимация для статусов */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sending-animation {
    animation: pulse 1.5s infinite;
}
