* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Стили для клиентской части */
.client-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    margin: 0 auto 30px;
}

.logo img {
    width: 100%;
    height: auto;
}

.client-info {
    margin-bottom: 30px;
}

.client-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.client-info p {
    font-size: 18px;
    color: #7f8c8d;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.file-upload-btn:hover {
    background-color: #2980b9;
}

.file-upload-btn i {
    margin-right: 8px;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #27ae60;
}

.submit-btn i {
    margin-right: 8px;
}

.notification {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

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

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

/* Стили для админ-панели */
.admin-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-title {
    font-size: 24px;
    color: #2c3e50;
}

.admin-controls {
    display: flex;
    gap: 15px;
}

.admin-btn, .action-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

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

.print-btn:hover {
    background-color: #2980b9;
}

.toggle-btn {
    background-color: #2c3e50;
    color: white;
}

.toggle-btn:hover {
    background-color: #1a252f;
}

.admin-btn i, .action-btn i {
    margin-right: 8px;
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.requests-table th, .requests-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.requests-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

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

.image-cell img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
}

.ad-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ad-logo {
    max-width: 150px;
}

.ad-logo img {
    width: 100%;
    height: auto;
}

.ad-info {
    flex: 1;
    margin-left: 20px;
}

.ad-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.ad-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    background-color: #0088cc;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.telegram-btn:hover {
    background-color: #0077b5;
}

.telegram-btn i {
    margin-right: 8px;
}

.admin-link {
    text-align: center;
    margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .client-section, .admin-section {
        padding: 20px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-controls {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-btn {
        flex: 1;
        justify-content: center;
        margin: 0 5px;
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-info {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .requests-table {
        display: block;
        overflow-x: auto;
    }
}

@media print {
    .admin-controls, .ad-section, .client-section, .no-print {
        display: none !important;
    }
    
    .admin-section {
        display: block !important;
        box-shadow: none;
    }
}
/* Стили для поиска */
.search-section {
    margin-bottom: 20px;
}

.search-form {
    max-width: 500px;
}

.search-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-btn, .clear-search-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 600;
}

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

.clear-search-btn {
    background: #95a5a6;
    color: white;
}

.results-info {
    margin-bottom: 15px;
    color: #7f8c8d;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #3498db;
    color: white;
}

.page-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Стили для поиска */
.search-section {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-group .form-control {
    flex: 1;
    min-width: 200px;
}

.search-btn, .clear-search-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 600;
    white-space: nowrap;
}

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

.search-btn:hover {
    background: #2980b9;
}

.clear-search-btn {
    background: #95a5a6;
    color: white;
}

.clear-search-btn:hover {
    background: #7f8c8d;
}

.results-info {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-weight: 600;
    text-align: center;
    background: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #3498db;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
}

.page-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.page-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    cursor: default;
}

/* Адаптивность для поиска и пагинации */
@media (max-width: 768px) {
    .search-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-group .form-control {
        margin-bottom: 10px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Индикатор загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}
/* Стили для камеры */
.camera-btn, .capture-btn, .cancel-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.camera-btn {
    background: #9b59b6;
    color: white;
}

.camera-btn:hover {
    background: #8e44ad;
}

.capture-btn {
    background: #2ecc71;
    color: white;
}

.capture-btn:hover {
    background: #27ae60;
}

.cancel-btn {
    background: #e74c3c;
    color: white;
}

.cancel-btn:hover {
    background: #c0392b;
}

#video {
    border: 2px solid #3498db;
    border-radius: 8px;
}

.camera-preview {
    margin-top: 15px;
    text-align: center;
}

.camera-preview img {
    max-width: 100%;
    max-height: 300px;
    border: 2px solid #3498db;
    border-radius: 8px;
}