/* Profile dialog styles */

.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    margin: 20px;
    overflow: hidden;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.profile-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.profile-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.profile-close:hover {
    background-color: #e0e0e0;
    color: #333;
}

.profile-form {
    padding: 24px;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}

.profile-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.profile-form input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.profile-form input.disabled-input {
    background-color: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #888;
}

.profile-error {
    background: #fee;
    color: #c00;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.profile-success {
    background: #efe;
    color: #080;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.profile-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.profile-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.profile-button:active {
    transform: scale(0.98);
}

.profile-button.primary {
    background: #4a90d9;
    color: white;
}

.profile-button.primary:hover {
    background: #357abd;
}

.profile-button.primary:disabled {
    background: #a0c4e8;
    cursor: not-allowed;
}

.profile-button.secondary {
    background: #e0e0e0;
    color: #333;
}

.profile-button.secondary:hover {
    background: #d0d0d0;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .profile-card {
        background: #2d2d2d;
    }

    .profile-header {
        background: #333;
        border-bottom-color: #444;
    }

    .profile-title {
        color: #fff;
    }

    .profile-close {
        color: #aaa;
    }

    .profile-close:hover {
        background-color: #444;
        color: #fff;
    }

    .profile-form label {
        color: #ddd;
    }

    .profile-form input {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }

    .profile-form input:focus {
        border-color: #5a9fe9;
        box-shadow: 0 0 0 3px rgba(90, 159, 233, 0.2);
    }

    .profile-form input.disabled-input {
        background-color: #333;
        color: #888;
    }

    .form-hint {
        color: #888;
    }

    .profile-button.secondary {
        background: #444;
        color: #ddd;
    }

    .profile-button.secondary:hover {
        background: #555;
    }
}
