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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Контейнер для основной страницы */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 30px;
}

/* Стили для страницы авторизации */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    animation: slideUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #666;
    font-size: 1.1em;
}

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

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95em;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    color: #999;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.demo-credentials {
    color: #667eea;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 10px;
    background: #f0f3ff;
    border-radius: 8px;
    font-weight: 500;
}

/* Стили для шапки с навигацией */
.header-with-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.header-with-nav h1 {
    color: #333;
    font-size: 2em;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 50px;
}

.user-info span {
    color: #495057;
    font-size: 0.95em;
}

.user-info strong {
    color: #667eea;
}

.nav-link {
    color: #667eea;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #e9ecef;
}

.logout-btn {
    color: #dc3545;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* Стили для форм */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 1.1em;
}

select, input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

select:focus, input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    background-color: white;
    cursor: pointer;
}

/* Стили для загрузки файлов */
.file-input-container {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.file-input-container:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

.file-info {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Стили для кнопок */
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Стили для админ панели */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    width: auto;
}

.tab-btn:hover {
    background: #f0f3ff;
    transform: none;
    box-shadow: none;
}

.tab-btn.active {
    color: #667eea;
    background: #f0f3ff;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Стили для таблицы пользователей */
.users-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e1e1;
    color: #495057;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.role-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-align: center;
}

.role-badge.admin {
    background: #667eea;
    color: white;
}

.role-badge.user {
    background: #28a745;
    color: white;
}

.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-tag {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #495057;
}

.projects-all {
    color: #28a745;
    font-style: italic;
    font-size: 0.9em;
}

.action-btn {
    padding: 6px 12px;
    margin: 0 5px 5px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    background: #667eea;
    color: white;
    width: auto;
    display: inline-block;
}

.action-btn.delete {
    background: #dc3545;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* Стили для форм в админке */
.admin-form {
    max-width: 500px;
    margin: 20px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.projects-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* Стили для прогресс-бара */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

#progress-text {
    text-align: center;
    color: #666;
    font-weight: 600;
}

/* Стили для сообщений */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

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

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

/* Стили для загруженных файлов */
.uploaded-files {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.uploaded-files h3 {
    color: #333;
    margin-bottom: 15px;
}

.uploaded-files ul {
    list-style: none;
}

.uploaded-files li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uploaded-files li:last-child {
    border-bottom: none;
}

.uploaded-files li:before {
    content: "✅";
    margin-right: 10px;
}

.path-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    color: #495057;
    font-size: 0.9em;
}

.path-info strong {
    color: #667eea;
    font-family: monospace;
}

/* Стили для ошибок */
.error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

.modal-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* Анимации */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header-with-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8em;
    }
    
    .users-table {
        font-size: 0.9em;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 0.8em;
    }
    
    .admin-form {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 1.5em;
    }
    
    .projects-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons button {
        width: 100%;
    }
}

/* Стили для дашборда */
.dashboard-container {
    max-width: 1200px;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.upload-program-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.filters-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-section .form-group {
    flex: 1;
    min-width: 200px;
}

.addresses-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.addresses-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.addresses-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.addresses-table td {
    padding: 12px;
    border-bottom: 1px solid #e1e1e1;
}

.addresses-table tr:hover {
    background: #f8f9fa;
}

.status-pending {
    color: #856404;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-completed {
    color: #155724;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.uploaded-info {
    font-size: 0.85em;
    color: #666;
}

.text-center {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Стили для модального окна с фото */
.large-modal {
    max-width: 900px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: auto;
    padding: 0 10px;
}

.close-btn:hover {
    color: #333;
    transform: none;
    box-shadow: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.photo-item {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.photo-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
}

.video-icon {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 48px;
    color: #667eea;
}

.photo-info {
    padding: 10px;
    background: white;
}

.photo-info div {
    font-size: 0.85em;
    color: #333;
    word-break: break-all;
}

.photo-meta {
    color: #666;
    font-size: 0.75em;
    margin-top: 5px;
}

.export-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.recent-exports {
    margin-top: 30px;
}

.recent-exports h3 {
    color: #333;
    margin-bottom: 15px;
}

/* Адаптивность для дашборда */
@media (max-width: 768px) {
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .addresses-table {
        font-size: 0.9em;
    }
    
    .addresses-table th,
    .addresses-table td {
        padding: 8px;
    }
}
/* Стили для галереи */
.gallery-modal .modal-content {
    max-width: 1000px;
    width: 95%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.gallery-header h3 {
    color: #333;
    font-size: 1.2em;
    margin: 0;
    word-break: break-word;
}

.gallery-viewer {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-media#galleryImage {
    cursor: zoom-in;
}

.gallery-media#galleryImage[style*="scale(1.5)"] {
    cursor: zoom-out;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
    flex-shrink: 0;
}

.gallery-info span {
    display: inline-block;
}

#mediaCounter {
    font-weight: bold;
    color: #667eea;
}

#mediaFilename {
    flex: 1;
    word-break: break-all;
}

.gallery-thumbnails-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: #667eea;
    transform: scale(1.05);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-video {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.thumb-scroll {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumb-scroll:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.no-media-message {
    color: white;
    font-size: 16px;
    text-align: center;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .gallery-modal .modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 10px;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .gallery-info {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8em;
    }
    
    .thumbnail-item {
        flex: 0 0 60px;
        height: 45px;
    }
    
    .thumb-scroll {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-header h3 {
        font-size: 1em;
    }
    
    .gallery-nav {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .thumbnail-item {
        flex: 0 0 50px;
        height: 38px;
    }
}
/* Стили для карточек проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.project-card.archived {
    background: #f8f9fa;
    opacity: 0.9;
}

.project-card.archived:hover {
    opacity: 1;
}

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

.project-card-header h3 {
    color: #333;
    font-size: 1.2em;
    margin: 0;
}

.project-name {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
    word-break: break-word;
}

.project-stats {
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.archive-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.restore-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    margin-left: 15px;
}

.restore-btn:hover {
    background: #218838;
}

.back-button-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.progress-bar.small {
    height: 4px;
    margin-top: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .back-button-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-card-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}
/* Стили для кнопки архивации в шапке */
.archive-btn-header {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.archive-btn-header:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Убираем кнопку архивации из карточки проекта */
.project-card .project-card-header .archive-btn {
    display: none;
}

/* Стили для адаптации */
@media (max-width: 768px) {
    .archive-btn-header {
        margin-left: 0;
        width: 100%;
    }
}