/* Profile Page Styles */
.profile-container {
    display: flex;
    gap: 30px;
    margin-top: 3rem;
    align-items: center;
    padding: 0 2rem;
}

/* Success and Error Messages */
.success-message, .error-message {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success-message {
    background-color: rgba(0, 173, 181, 0.1); /* Light blue based on --blue */
    border-left: 4px solid var(--blue);
    color: var(--dark_gray);
}

.error-message {
    background-color: rgba(255, 99, 71, 0.1); /* Light red */
    border-left: 4px solid tomato;
    color: var(--dark_gray);
}

/* Success and error messages - Legacy style */
.success-message,
.error-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.message-content {
    flex-grow: 1;
}

.close-message {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-message:hover {
    opacity: 1;
}

/* Custom Alert Messages */
.alert-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.alert.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-content {
    flex-grow: 1;
    padding-right: 10px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.5;
}

.alert-close:hover {
    opacity: 1;
}

/* Left column - Profile picture circle */
.profile-picture-column {
    width: 30%;
    display: flex;
    justify-content: center;
}

.profile-picture-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--light_gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-icon {
    font-size: 5rem;
    color: var(--black);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* File upload styling */
.upload-form {
    margin-top: 1rem;
}

.file-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    background-color: var(--light_gray);
    color: var(--dark_gray);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.file-label:hover {
    background-color: var(--blue);
    color: var(--white);
}

.file-name {
    font-size: 0.9rem;
    color: var(--dark_gray);
    margin-top: 0.5rem;
    display: inline-block;
}

/* Right column - Upload button with title and description */
.profile-upload-column {
    width: 70%;
}

.upload-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--black);
}

.upload-description {
    color: var(--dark_gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Divider */
.profile-divider {
    height: 1px;
    background-color: var(--light_gray);
    margin: 3rem 0;
    width: 100%;
}

/* Info rows styles */
.info-rows {
    margin-top: 1.5rem;
    width: 100%;
}

.info-row {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
}

.info-label {
    width: 30%;
    text-align: right;
    padding-right: 1rem;
    font-weight: 500;
    color: var(--black);
}

.info-value {
    width: 70%;
    color: var(--dark_gray);
}

/* Simple form styles */
.simple-form {
    margin-top: 1.5rem;
    width: 100%;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.2rem;
    color: var(--black);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-divider {
    height: 1px;
    background-color: var(--light_gray);
    margin: 2rem 0;
    width: 100%;
}

.profile-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.profile-form-row .profile-form-group {
    flex: 1;
    margin-bottom: 0;
}

.profile-form-group {
    margin-bottom: 1rem;
}

.profile-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.profile-form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--light_gray);
    border-radius: 3px;
    font-size: 0.9rem;
    color: var(--black);
}

.profile-form-group input:focus {
    outline: none;
    border-color: var(--blue);
}

.form-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--light_gray);
    border-radius: 3px;
    font-size: 0.9rem;
    color: var(--black);
    background-color: var(--white);
    appearance: auto;
}

.form-select:focus {
    outline: none;
    border-color: var(--blue);
}

.profile-form-group input::placeholder {
    color: #aaa;
    font-size: 0.85rem;
}

.profile-checkbox-group {
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-item label {
    display: inline;
    margin-bottom: 0;
    cursor: pointer;
}

.simple-form button {
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-picture-column,
    .profile-upload-column {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group {
        margin-bottom: 0;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .info-label, 
    .info-value {
        width: 100%;
    }
    
    .info-label {
        text-align: left;
        margin-bottom: 0.3rem;
    }
    
    .checkbox-item {
        justify-content: center;
    }
    
    .simple-form {
        text-align: left;
    }
}
