/* Common Form Wrapper Styles */
.blocdash-form-wrapper { 
    font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", Arial, sans-serif; 
    max-width: 100%; 
    margin: 2rem auto; 
    padding: 2.7rem;
    background: #fcfcfc !important; 
    color: #111111 !important;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.blocdash-form { display: flex; flex-direction: column; gap: 1.25rem; }
.blocdash-form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.blocdash-form-row-inline { flex-direction: row; gap: 1rem; }
.blocdash-form-row-inline > .blocdash-form-field { flex: 1; }

.blocdash-form-field label { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: #1b1b1b; 
    display: block; 
    margin-bottom: 0.5rem; 
}

.blocdash-form-field input[type="text"], 
.blocdash-form-field input[type="email"], 
.blocdash-form-field input[type="password"], 
.blocdash-form-field select { 
    width: 100%; 
    padding: 0.8rem 1rem; 
    border: 1px solid #d8d8d8; 
    border-radius: 8px; 
    font-size: 1rem; 
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s; 
}

.blocdash-form-field input:focus, 
.blocdash-form-field select:focus { 
    outline: none; 
    border-color: #111; 
    box-shadow: 0 0 0 2px rgba(17,17,17,0.08); 
}

.blocdash-form-submit { 
    background-color: #111; 
    color: #fff !important; 
    border: none; 
    padding: 1rem; 
    font-size: 1.1rem; 
    font-weight: bold; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: opacity 0.2s; 
    margin-top: 0.5rem;
}

.blocdash-form-submit:hover, 
.blocdash-form-submit:focus { 
    opacity: 0.85; 
}

.blocdash-form-submit:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.blocdash-form-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.blocdash-form-links a {
    color: #111111;
    text-decoration: underline;
}

.blocdash-ajax-message { 
    padding: 1rem; 
    margin-bottom: 1.5rem; 
    border-radius: 8px; 
    display: none; 
}

.blocdash-ajax-message.success { 
    background-color: #ededed; 
    color: #111; 
    border: 1px solid #d6d6d6; 
    border-left: 4px solid #111; 
}

.blocdash-ajax-message.error { 
    background-color: #f5f5f5; 
    color: #111; 
    border: 1px solid #d6d6d6; 
    border-left: 4px solid #555; 
}

/* Profile Editor Specific Styles */
.blocdash-info-snippet { 
    background: #f5f5f5; 
    width: 100%;  
    padding: 1.5rem; 
    margin-bottom: 2rem; 
    border-radius: 8px; 
    text-align: left; 
}

.blocdash-info-snippet ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: inline-block; 
    text-align: left; 
}

.blocdash-info-snippet li { 
    margin-bottom: 0.5rem; 
    color: #4f4f4f; 
    font-size: 0.95em; 
}

.blocdash-profile-picture-area .blocdash-avatar-preview { 
    margin-bottom: 1rem; 
    text-align: center; 
}

.blocdash-profile-picture-area .blocdash-avatar-preview img { 
    border-radius: 50%; 
    box-shadow: 0 6px 16px rgba(0,0,0,0.12); 
    object-fit: cover; 
}

.blocdash-avatar-upload-label { 
    display: inline-block; 
    padding: 10px 15px; 
    background-color: #f1f1f1; 
    color: #1b1b1b; 
    border: 1px solid #d0d0d0; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 500; 
    transition: background-color 0.2s; 
    text-align: center; 
    width: 100%; 
    box-sizing: border-box; 
}

.blocdash-avatar-upload-label:hover { 
    background-color: #e7e7e7; 
}

.blocdash-form-field small { 
    display: block; 
    margin-top: 0.5rem; 
    font-size: 0.85em; 
    color: #6a6a6a; 
}

.blocdash-form-field input:disabled { 
    background: #f0f0f0; 
    color: #888; 
    cursor: not-allowed; 
}

/* Loading Modal Styles */
.blocdash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

.blocdash-modal-content {
    background: #fcfcfc;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 320px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}

.blocdash-spinner {
    border: 4px solid #ededed;
    border-top: 4px solid #111111;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: blocdash-spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.blocdash-modal-message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1b1b1b;
}

/* Danger Zone */
.blocdash-danger-zone {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: #fff5f5;
    border: 1px solid #f1c6c6;
}

.blocdash-danger-zone h4 {
    margin: 0 0 0.5rem;
}

.blocdash-danger-zone p {
    margin: 0 0 1rem;
    color: #5c2f2f;
}

.blocdash-danger-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #5c2f2f;
}

.blocdash-danger-button {
    background-color: #b42318;
}

.blocdash-danger-button:hover,
.blocdash-danger-button:focus {
    opacity: 0.9;
}

@keyframes blocdash-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .blocdash-form-row-inline { flex-direction: column; }
    .blocdash-form-wrapper { padding: 1.5rem; }
}
