/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #e1bee7);
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    background: #fff;
    max-width: 600px;
    width: 100%;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.6s ease;
    box-sizing: border-box;
}

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

h2, h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #374151;
}

/* Инфо о профиле */
#profileInfo {
    background-color: #f9f9fb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

#profileInfo p {
    font-size: 16px;
    color: #444;
    margin: 8px 0;
    padding: 8px 0;
}

/* Форма редактирования профиля */
#profileForm {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#profileForm label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    text-align: left;
    font-weight: 600;
}

#profileForm input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
    margin-bottom: 15px;
}

#profileForm input:focus {
    border-color: #1e11b5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 17, 181, 0.1);
}

#profileForm input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Кнопки */
.primary-button,
.secondary-button,
.danger-button {
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Основной стиль кнопок */
.primary-button {
    background: linear-gradient(90deg, #1e11b5, #3627c5);
    color: #fff;
    margin-top: 10px;
}

.primary-button:hover {
    background: linear-gradient(90deg, #3627c5, #4f3fd8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 17, 181, 0.3);
}

.secondary-button {
    background: #f1f1f1;
    color: #333;
    margin-top: 10px;
}

.secondary-button:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.danger-button {
    background-color: #dc3545;
    color: white;
    margin-top: 20px;
    max-width: 300px;
}

.danger-button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Сообщения */
.message {
    margin-top: 15px;
    font-weight: bold;
    min-height: 20px;
    color: #333;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}

.message.success {
    color: #059669;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
}

.message.error {
    color: #dc2626;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

/* Контейнер кнопок почты @onnmail */
.onnmail-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* Карточки */
.card, .form-card {
    background-color: #f9f9fb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    text-align: left;
    border: 1px solid #e5e7eb;
}

/* Сетка инструментов */
.tools-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 12px; 
    margin-bottom: 20px;
}

.tool-link { 
    display: flex;
    align-items: center;
    padding: 16px 20px; 
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    text-decoration: none; 
    color: #111827; 
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #1e11b5;
    background-color: #f8fafc;
}

.tool-icon {
    font-size: 20px;
    margin-right: 12px;
}

.tool-text {
    font-weight: 500;
}

/* Недавно использованные инструменты */
.recent-tools {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.recent-tools strong {
    display: block;
    margin-bottom: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.recent-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-tools li {
    margin-bottom: 8px;
}

.recent-tools a {
    color: #1e11b5;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.recent-tools a:hover {
    background: #e5e7eb;
    color: #1e40af;
    transform: translateX(2px);
}

/* Секция выхода */
.logout-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.button-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-link {
        padding: 14px 16px;
    }
    
    .card, .form-card {
        padding: 20px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    .card, .form-card {
        padding: 15px;
    }
    
    .primary-button,
    .secondary-button,
    .danger-button {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Анимации для плавности */
.card, .form-card {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Улучшенные эффекты наведения */
.card:hover {
    box-shadow: inset 0 0 8px rgba(0,0,0,0.08);
}

/* Стили для полей ввода */
input:focus {
    border-color: #1e11b5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 17, 181, 0.1);
}

/* Улучшенные кнопки */
.primary-button:active,
.secondary-button:active,
.danger-button:active {
    transform: scale(0.98);
}