/* Общие стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
}

.btn-secondary {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

/* Стили для шапки */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #333;
    font-weight: 600;
}

/* Стили для футера */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

/* Стили для страницы авторизации */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для панели управления */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.dashboard-websites {
    margin-top: 30px;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.website-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.website-status {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.up {
    background-color: #2ecc71;
}

.down {
    background-color: #e74c3c;
}

.unknown {
    background-color: #f39c12;
}

.website-url {
    color: #7f8c8d;
    margin-bottom: 10px;
    word-break: break-all;
}

.website-last-checked {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.website-actions {
    display: flex;
    gap: 10px;
}

/* Стили для таблиц */
.websites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.websites-table-container,
.logs-table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.websites-table,
.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.websites-table th,
.websites-table td,
.logs-table th,
.logs-table td {
    padding: 12px 12px;
	font-size:12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.websites-table th,
.logs-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.websites-table tr:hover,
.logs-table tr:hover {
    background-color: #f8f9fa;
}



.status-up {
    color: #2ecc71;
    font-weight: 600;
}

.status-down {
    color: #e74c3c;
    font-weight: 600;
}

.status-unknown {
    color: #f39c12;
    font-weight: 600;
}

/* Стили для пустых состояний */
.dashboard-empty,
.websites-empty,
.logs-empty {
    text-align: center;
    padding: 50px 0;
}

.dashboard-empty p,
.websites-empty p,
.logs-empty p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

/* Форма выбора сайта для логов */
.website-selector {
    margin-bottom: 20px;
}

.website-selector .form-group {
    display: flex;
    align-items: center;
}

.website-selector label {
    margin-right: 10px;
    margin-bottom: 0;
}

.website-selector select {
    width: 300px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    .website-selector .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .website-selector label {
        margin-bottom: 5px;
    }
    
    .website-selector select {
        width: 100%;
    }
    
    .websites-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .websites-header a {
        margin-top: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .website-actions {
        flex-direction: column;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions a {
        margin-bottom: 5px;
    }
}


/* Стили для кнопки редактирования */
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-right: 5px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Стили для чекбокса */
input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

label[for="check_search_engines"] {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Стили для формы редактирования */
.website-edit {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.website-edit h2 {
    margin-bottom: 20px;
    text-align: center;
}

.website-edit form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
}

/* Адаптивные стили для таблицы сайтов */
@media (max-width: 768px) {
    .websites-table {
        display: block;
        overflow-x: auto;
    }
    
    .websites-table th,
    .websites-table td {
        min-width: 120px;
    }
    
    .websites-table .actions {
        display: flex;
        flex-direction: column;
    }
    
    .websites-table .btn-sm {
        margin-bottom: 5px;
    }
}

.action-bar{
	width:100%;
	display:flex;
	align-items:center;
	justify-content:space-between;
	margin-bottom:24px;
}

.action-bar h2{
	margin:0px;
}




/* Стили для информации об индексации */

/* Статистическая карточка для неиндексируемых сайтов */
.dashboard-stats .stat-card:last-child .stat-value {
    color: #e74c3c;
}
/* Современная секция с проблемными сайтами */
.dashboard-alert {
    margin-bottom: 2rem;
    padding: 1.75rem;
    background-color: #fffbeb;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.08), 0 0 0 1px rgba(234, 179, 8, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.dashboard-alert h3 {
    display: flex;
    align-items: center;
    color: #92400e;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-alert h3::before {
    content: '⚠️';
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.non-indexable-sites {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.non-indexable-site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.15);
    border-left: 4px solid #e74c3c;
    transition: transform 0.2s, box-shadow 0.2s;
}

.non-indexable-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.site-name {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.site-name::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #e74c3c;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.non-indexable-site .btn {
    padding: 0.4rem 0.75rem;
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.non-indexable-site .btn:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* Адаптивная версия */
@media (max-width: 576px) {
    .dashboard-alert {
        padding: 1.25rem;
    }
    
    .non-indexable-site {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .non-indexable-site .btn {
        width: 100%;
        text-align: center;
    }
}
/* Статус индексации в карточке сайта */
.website-indexing-status {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.indexing-ok {
    color: #28a745;
    font-weight: 500;
}

.indexing-error {
    color: #dc3545;
    font-weight: 500;
}

.indexing-not-tracked {
    color: #6c757d;
    font-style: italic;
}

.indexing-unknown {
    color: #ffc107;
    font-style: italic;
}

/* Улучшение карточек сайтов */
.website-card {
    position: relative;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.website-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.website-status.up {
    background-color: #28a745;
}

.website-status.down {
    background-color: #dc3545;
}

.website-status.unknown {
    background-color: #6c757d;
}

.website-card h4 {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.website-url {
    color: #6c757d;
    margin-bottom: 0.75rem;
    word-break: break-all;
    font-size: 0.9rem;
}

.website-last-checked {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.website-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .non-indexable-site {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .non-indexable-site .btn {
        width: 100%;
    }
}




/* Стили для чекбокса проверки поисковых систем */
.search-engines-option {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.search-engines-option:hover {
    background-color: #f1f3f5;
    border-color: #dee2e6;
}

.search-engines-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.search-engines-option label:hover {
    color: #1a73e8;
}

.search-engines-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-engines-option input[type="checkbox"]:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.search-engines-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.search-engines-option input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.25);
}

.search-engines-option small {
    display: block;
    margin-left: 30px;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

.search-engines-option.active {
    background-color: #e8f0fe;
    border-color: #d0e1fd;
}

/* Значок поисковых систем */
.search-engines-icon {
    margin-left: 30px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-engines-icon img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.search-engines-option input[type="checkbox"]:checked ~ .search-engines-icon img {
    opacity: 1;
}





/* Стили для панели доменов с истекающим сроком */
.domain-expiration-panel {
    margin-bottom: 32px;
    padding: 0;
    border-radius: 8px;
}

.domain-expiration-panel h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.domain-expiration-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e67e22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    margin-right: 8px;
}

.domains-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.domain-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Цветовая кодировка по приоритету */
.domain-card.domain-critical {
    border-left-color: #e74c3c;
}

.domain-card.domain-urgent {
    border-left-color: #e67e22;
}

.domain-card.domain-warning {
    border-left-color: #f39c12;
}

.domain-card.domain-notice {
    border-left-color: #3498db;
}

.domain-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.domain-card-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
}

.domain-days {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.domain-days.domain-critical {
    background-color: #fef2f2;
    color: #b91c1c;
}

.domain-days.domain-urgent {
    background-color: #fff7ed;
    color: #c2410c;
}

.domain-days.domain-warning {
    background-color: #fffbeb;
    color: #b45309;
}

.domain-days.domain-notice {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.domain-card-body {
    padding: 16px;
}

.domain-url {
    font-size: 14px;
    word-break: break-all;
    margin-bottom: 8px;
    color: #2c3e50;
}

.domain-url a {
    color: #3498db;
}

.domain-expiration-date {
    font-size: 14px;
    color: #7f8c8d;
}

.domain-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.domain-card-footer .btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .domains-cards {
        grid-template-columns: 1fr;
    }
    
    .domain-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-days {
        margin-top: 8px;
    }
}