body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header {
    text-align: center;
    color: #282;
    margin-bottom: 25px;
    font-size: 28px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
}

/* Стили для контейнера ссылок */
.links-container {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #282;
}

.links-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #282;
    font-weight: 600;
    font-size: 18px;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sheet-link {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sheet-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #282;
}

.link-icon {
    font-size: 24px;
    margin-right: 15px;
}

.link-content {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-weight: 600;
    color: #282;
    margin-bottom: 5px;
}

.link-desc {
    font-size: 13px;
    color: #6c757d;
}

/* Улучшенные стили для формы */
.form-container {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 8px;
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
}

.form-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #282;
    font-weight: 600;
    font-size: 18px;
}

.input-field {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

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

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

.file-input-text {
    display: block;
    padding: 12px 15px;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-wrapper:hover .file-input-text {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.submit-button {
    background-color: #282;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(40, 34, 34, 0.1);
}

.submit-button:hover:not(:disabled) {
    background-color: #2cc92c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 34, 34, 0.15);
}

.submit-button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(40, 34, 34, 0.1);
}

.submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

.required {
    color: #dc3545;
    margin-left: 3px;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #282;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    display: flex;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.notification.error {
    background-color: #dc3545;
}

.notification.success {
    background-color: #282;
}

.notification.partial {
    background-color: #ffc107;
    color: #343a40;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 20px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .header {
        font-size: 24px;
    }
}

.logout-button {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.logout-button:hover {
    background-color: #c82333;
}