* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5eb;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

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

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

.project-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4CAF50;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Стили статусов */
.project-card[data-active="false"] {
    border-left-color: #6c757d;
    opacity: 0.8;
}

.project-card[data-paid="true"] {
    box-shadow: 0 0 0 2px #28a745;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.status-indicators {
    display: flex;
    gap: 5px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.inactive { background: #f8d7da; color: #721c24; }
.status-badge.paid { background: #d1ecf1; color: #0c5460; }
.status-badge.unpaid { background: #fff3cd; color: #856404; }

.site-url {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    word-break: break-all;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.report-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.report-date {
    color: #495057;
}

.report-uploaded {
    color: #28a745;
    font-size: 16px;
}

.open-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.open-btn:hover {
    background: #0056b3;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    background: #343a40;
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 20px;
}

/* Drag & Drop зона */
.drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 15px 0;
    transition: all 0.3s;
}

.drop-zone.dragover {
    background: #e7f3ff;
    border-color: #0056b3;
}

.drop-zone p {
    margin-bottom: 15px;
    color: #6c757d;
}

/* Стили для задач */
.task-list {
    margin-top: 20px;
}

.task-item {
    background: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: #28a745;
}

.task-text {
    flex-grow: 1;
}

.task-meta {
    font-size: 12px;
    color: #6c757d;
}

/* Формы */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Стили для задач с чекбоксами */
.task-checkbox {
    cursor: pointer;
}

.task-item.completed {
    opacity: 0.7;
    background: #e9ecef;
}

/* Стили для списка файлов */
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-link {
    color: #007bff;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

.file-meta {
    font-size: 12px;
    color: #6c757d;
    margin-left: 10px;
}

/* Стили для внешних ссылок */
.external-links-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.external-links-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.external-links-list li:last-child {
    border-bottom: none;
}

.external-links-list a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.external-links-list a:hover {
    text-decoration: underline;
}

.external-links-list small {
    color: #6c757d;
    margin-left: 10px;
}

/* Стили для комментариев */
.comment-item {
    transition: background-color 0.3s;
}

.comment-item:hover {
    background-color: #e9ecef !important;
}

/* Прогресс-бар для загрузки файлов */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #28a745;
    transition: width 0.3s;
}

/* Улучшенная Drag & Drop зона */
.drop-zone.dragover {
    background-color: #e7f3ff;
    border-color: #0056b3;
    transform: scale(1.02);
}

.drop-zone.active {
    background-color: #d4edda;
    border-color: #28a745;
}