/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    color: #333;
}

/* Стили для формы входа */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

form {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
}

form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Важно! */
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: #d93025;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

/* Стили для дашборда */
.dashboard-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 24px;
}

.dashboard-header a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.main-content {
    padding: 30px;
}

/* Стили для контента дашборда */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.form-container h2 {
    margin-top: 0;
}

.projects-list {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.projects-list h2 {
    margin-top: 0;
}

/* Стили для таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td a {
    color: #007bff;
    text-decoration: none;
}
table td a:hover {
    text-decoration: underline;
}

/* Стили для страницы анализа */
.analysis-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    margin-top: 0;
    font-size: 20px;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

.competitor-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.competitor-block h4 {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: monospace; /* Лучше для HTML-кода */
    font-size: 12px;
}

.analyze-button {
    font-size: 18px !important;
    padding: 15px !important;
}

.action-link.delete {
    color: #d93025;
}

/* Стили для страницы отчета */
.report-block {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.report-block h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.report-block p {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
}
.report-block table td.ok {
    color: #28a745;
    font-weight: bold;
}
.report-block table td.bad {
    color: #dc3545;
    font-weight: bold;
}

.report-meta {
    background: #e9f5ff;
    border: 1px solid #b3d7ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
}
.report-meta p {
    margin: 5px 0;
}

/* Улучшение общего вида админки */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa; /* Более светлый фон */
}

/* Стили для контейнера карты, чтобы он выглядел лучше */
#network {
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* Более приятные кнопки */
button {
    background-image: linear-gradient(to right, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}