/* profile.css - Styles for the profile page */

.profile-dashboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 24px;
    color: #333;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Profile Picture Section */
.profile-picture-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 768px) {
    .profile-picture-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.current-picture {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.current-picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.picture-upload {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-input {
    display: none;
}

.file-input-label {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
}

.file-input-label:hover {
    background-color: #e0e0e0;
}

.selected-file-name {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
    word-break: break-all;
}

/* Account Info Section */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .info-item {
        flex-direction: row;
        gap: 10px;
    }
}

.info-label {
    font-weight: bold;
    color: #555;
    min-width: 100px;
}

.info-value {
    color: #333;
}

/* Forms */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #555;
}

.form-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #7a6855;
    box-shadow: 0 0 0 2px rgba(122, 104, 85, 0.2);
}

.password-strength {
    height: 5px;
    background-color: #eee;
    margin-top: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    background-color: #e74c3c;
    transition: width 0.3s, background-color 0.3s;
}

.password-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Button Styles */
.primary-btn {
    background-color: #7a6855;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.primary-btn:hover {
    background-color: #64574a;
}

.primary-btn:disabled {
    background-color: #bbb;
    cursor: not-allowed;
}

/* Notification Toggle Switches */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.toggle-label {
    font-size: 14px;
    color: #333;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #7a6855;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #7a6855;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Messages */
.message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-dashboard {
        padding: 15px 10px;
    }
    
    .profile-section {
        padding: 15px;
    }
    
    .primary-btn {
        align-self: stretch;
    }
    
    .current-picture img {
        width: 120px;
        height: 120px;
    }
}

/* css/profile.css */
.profile-container {
    max-width: 300px; /* Or a value that looks better */
    margin: 20px auto; /* Center the container */
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}