* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

a{
	font-weight: bold;
  color: #fc00ff;
}

p{
	padding:5px 0;
}

form{
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 3px 3px 12px #ccc;
}
form.noForm {
  box-shadow: none;
  padding: 0;
}

.container {
    width: 98%;
    margin: 0 auto;
    padding: 0 20px;
		max-width: 1600px;
}

.flex{
	display: flex;
  justify-content: space-between;
	gap: 20px;
}
.hidden{
	display:none;
}
/* ШАПКА */

header {
    background: radial-gradient(circle at 30% 70%, #00dbde, #fc00ff);
    color: white;
    padding: 1rem 0;
}

header nav {
  line-height: 50px;
}

nav ul {
    list-style: none;
    float: right;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.user-info {
    color: #ffd700;
    font-weight: bold;
}



main.container {
    padding: 20px;
    min-height: 80vh;
}



footer {
    background: radial-gradient(circle at 30% 70%, #00dbde, #fc00ff);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* ФОРМЫ */
.form-group {
	margin-bottom: 1rem;
	flex-grow: 1;
}

.form-group label {
    display: block;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    background: radial-gradient(circle at 30% 70%, #00dbde, #fc00ff);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background: radial-gradient(circle at 70% 30%, #00dbde, #fc00ff);
}

/* АЛЕРТЫ */
.alert {
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* tasks */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.settings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.settings-section h3 {
    color: #333;
}

.categories-tree {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.category-item.level-1 { border-left-color: #28a745; margin-left: 20px; }
.category-item.level-2 { border-left-color: #ffc107; margin-left: 40px; }
.category-item.level-3 { border-left-color: #dc3545; margin-left: 60px; }
.category-item.level-4 { border-left-color: #6f42c1; margin-left: 80px; }

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.checkbox-label small {
    font-size: 0.8em;
    color: #666;
    margin-left: 0.5rem;
}
.keywords-input{
	flex-grow: 1;
}
.keywords-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.no-categories {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.category-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
textarea{
	padding:10px;
}
small{
	font-size:10px;
	color:#999;
	display: block;
}
.header-actions {
	margin-bottom: 2rem;
}

.add-form {
	background: #f8f9fa;
	padding: 2rem;
	border-radius: 10px;
	margin-bottom: 2rem;
	border-left: 4px solid #007bff;
}

.sites-table {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

th, td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #eee;
}

th {
	background: #f8f9fa;
	font-weight: 600;
}

.site-url {
	color: #007bff;
	text-decoration: none;
}

.site-url:hover {
	text-decoration: underline;
}

.status-badge {
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
}

.status-active {
	background: #d4edda;
	color: #155724;
}

.status-inactive {
	background: #f8d7da;
	color: #721c24;
}

.empty-state {
	text-align: center;
	padding: 3rem;
	color: #666;
}

.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}


.verification-actions {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.settings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.settings-section h3 {
    color: #333;
}
.tasks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.tasks-table th, .tasks-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.tasks-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.task-categories {
    margin-top: 0.3rem;
}

.category-tag {
    display: inline-block;
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0.1rem;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

.task-actions {
    display: flex;
    gap: 0.3rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.hidden {
    display: none;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}
.task-prompt {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px;
}

.prompt-content {
    max-width: 100%;
}

.prompt-text {
    word-break: break-word;
    white-space: pre-wrap;
    background: white;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin: 10px 0;
    font-family: monospace;
    font-size: 14px;
}

.prompt-row {
    background: #f0f8ff;
}
.task-errors {
    font-size: 14px;
    line-height: 1.4;
}

.task-errors strong {
    color: #d32f2f;
}

.task-errors ul li {
    border-bottom: 1px solid #ffcdd2;
    padding-bottom: 5px;
}

.task-errors p {
    margin: 5px 0;
}