/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 400px;
    width: 100%;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.forms-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-box {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #444;
}

/* Стили для полей ввода и кнопок */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Чтобы padding не увеличивал ширину */
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Сообщения */
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: left;
}

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

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

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        box-shadow: none;
    }
}
/* Стили для dashboard.php */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 20px;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.logout-button {
    background-color: #dc3545;
}

.logout-button:hover {
    background-color: #c82333;
}

.add-site-section {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.add-site-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.add-site-form input {
    flex-grow: 1;
    min-width: 200px;
}

.sites-list {
    margin-top: 20px;
}

.site-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.site-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.site-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.copy-key-button {
    background-color: #6c757d;
}

.copy-key-button:hover {
    background-color: #5a6268;
}

/* Адаптивность для форм */
@media (max-width: 480px) {
    .add-site-form input {
        width: 100%;
        min-width: 0;
    }
    
    .add-site-form button {
        width: 100%;
    }
    
    .site-actions {
        flex-direction: column;
    }
}
/* Стили для site_details.php */
.back-button {
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-button:hover {
    text-decoration: underline;
}

.card-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.stat-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #6c757d;
}

.stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    cursor: pointer;
}

.module-item input[type="checkbox"] {
    transform: scale(1.2);
}

pre {
    background-color: #eee;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

code {
    display: block;
}

.update-modules-button {
    background-color: #28a745;
}

.update-modules-button:hover {
    background-color: #218838;
}

.update-modules-button, .copy-key-button {
    margin-top: 10px;
    width: 100%;
}
/* Стили для ip_blocking.php */
.add-ip-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-ip-form input, .add-ip-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.add-ip-form textarea {
    resize: vertical;
    min-height: 80px;
}

.unblock-button {
    background-color: #ffc107;
    color: #212529;
    padding: 8px 12px;
    font-size: 14px;
}

.unblock-button:hover {
    background-color: #e0a800;
}

