/* General reset */
* {
    box-sizing: border-box;
}

body.profile-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    color: #333;
}

/* Profile container */
.profile-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 480px;
    max-width: 100%;
    padding: 30px 35px;
}

/* Heading styles */
.profile-heading {
    color: #4b3ca7;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Button styles */
.profile-btn-back {
    display: inline-block;
    background-color: #764ba2;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
}

.profile-btn-back:hover {
    background-color: #5a3580;
}

/* Form and input styles */
.profile-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.profile-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1.8px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
    margin-bottom: 20px;
}

.profile-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 8px #764ba2aa;
}

/* Profile messages */
.profile-message {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.profile-message.success {
    color: #28a745;
}

.profile-message.error {
    color: #d9534f;
}

/* Experience card styles */
.profile-experience-card {
    background: #f9f9f9;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: inset 0 0 8px #ddd;
}

.profile-experience-card strong {
    font-size: 1.1rem;
}

.profile-edit-link {
    color: #764ba2;
    font-weight: 600;
    text-decoration: none;
    float: right;
}

.profile-edit-link:hover {
    text-decoration: underline;
}

.profile-experience-dates {
    font-size: 0.9rem;
    color: #777;
}

.profile-experience-description {
    font-size: 1rem;
    color: #555;
}

/* Buttons */
.profile-upload-btn,
.profile-update-btn {
    background-color: #764ba2;
    color: white;
    font-weight: 600;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.profile-upload-btn:hover,
.profile-update-btn:hover {
    background-color: #5a3580;
}

/* Cancel edit */
.profile-cancel-edit {
    display: inline-block;
    margin-top: 10px;
    color: #764ba2;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.profile-cancel-edit:hover {
    color: #5a3580;
}

/* Divider */
.profile-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 30px 0;
}

/* Mobile Styles */
@media (max-width: 520px) {
    .profile-container {
        width: 100%;
        padding: 20px;
    }
}
