/* ============================================
   ESTILOS GERAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.5s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CARD DE TAREFAS
   ============================================ */
.task-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.task-card h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.task-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.task-row {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.task-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.task-row h3 {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.input-group input {
    width: 80px;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn-blue {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
}

.btn-blue:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.btn-green {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.btn-green:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.result-box {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border: 2px solid #ddd;
}

.result-error {
    background: #ffdddd;
    color: #d32f2f;
    border-color: #f44336;
}

/* ============================================
   SEÇÃO DE RESUMO (ЗАДАНИЕ 4)
   ============================================ */
.resume-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 3px solid #667eea;
}

.resume-section h2 {
    color: #667eea;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

/* Perfil */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #667eea;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s;
}

.profile-photo:hover {
    transform: scale(1.05) rotate(5deg);
}

.profile-info h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.position {
    font-size: 20px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.location {
    font-size: 16px;
    color: #666;
}

/* Contatos */
.contact-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.contact-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 16px;
    color: #555;
    margin: 8px 0;
}

/* Edição */
.edit-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border: 2px dashed #ffc107;
}

.edit-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-edit {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
}

.btn-edit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(40, 167, 69, 0.4);
}

.btn-random {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(245, 87, 108, 0.3);
}

.btn-random:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(245, 87, 108, 0.4);
}

/* Habilidades */
.skills-section {
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.skills-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.skills-section ul {
    list-style: none;
    padding-left: 10px;
}

.skills-section li {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    font-size: 16px;
    color: #444;
    border-left: 3px solid #2196F3;
    transition: all 0.3s;
}

.skills-section li:hover {
    background: #2196F3;
    color: white;
    transform: translateX(10px);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 24px;
    }
    
    .position {
        font-size: 18px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        width: 100%;
    }
    
    .btn-blue, .btn-green {
        width: 100%;
    }
}
