
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

/* Override Default WP Login Styles */
body.login {
    background-color: #0f0e17 !important;
    background-image: radial-gradient(circle at 50% 0%, #2e2136 0%, #0f0e17 70%);
    font-family: 'Inter', sans-serif !important;
    color: #fffffe !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#login {
    width: 400px !important;
    padding: 0 !important;
    margin: 0 !important;
}

#login h1 {
    display: none;
}

/* Custom Container */
#dgt-login-container {
    background: #1f1f2e; /* Darker, like dashboard card */
    border: 1px solid #333;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

/* Add spacing for shortcode pages - Increased and Enforced */
body:not(.login) #dgt-login-container {
    margin: 60px auto !important;
}

/* --- Profile Page Overhaul (GSS Style) --- */
#dgt-profile-card {
    background: transparent; /* Was #1e1b4b */
    border: none;
    box-shadow: none;
    color: white;
    font-family: 'Inter', sans-serif;
    max-width: 800px;
    margin: 60px auto; /* Reset margin */
}

.dgt-hero-section {
    background: #1e1b4b; /* Give it the base color back so the gradient sits on something solid if needed, or just opaque base */
    background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px; /* Standalone rounded corners */
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    margin-bottom: 24px; /* Space between header and content cards */
}

.dgt-content {
    padding: 0; /* Remove padding since container is gone */
}

/* Ensure grid items fill width */
.dgt-grid { display: flex; flex-direction: column; gap: 16px; }

.dgt-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.dgt-identity { flex: 1; }
.dgt-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.dgt-name { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; color: white; }

.dgt-icon-btn {
    background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer;
    padding: 4px; display: flex; transition: color 0.2s;
}
.dgt-icon-btn:hover { color: white; }

.dgt-meta-column { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dgt-role-badge {
    font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
    padding: 2px 8px; border-radius: 10px; border: 1px solid;
    display: inline-block;
}
.dgt-email-display { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.dgt-content { padding: 0; }
.dgt-grid { display: flex; flex-direction: column; gap: 16px; }

.dgt-settings-card {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.dgt-card-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
}

.dgt-row-between { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.dgt-text-btn {
    background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: white; padding: 6px 12px; font-size: 0.85rem; cursor: pointer;
    transition: background 0.2s;
}
.dgt-text-btn:hover { background: rgba(255,255,255,0.1); }

.dgt-compact-input {
    width: 100%; padding: 8px 12px; border-radius: 8px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    color: white; font-size: 0.9rem; box-sizing: border-box;
}

.dgt-btn-row { display: flex; gap: 8px; margin-top: 12px; }
.dgt-save-btn-small {
    flex: 1; padding: 8px; background: #6366f1; border: none; border-radius: 8px;
    color: white; font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.dgt-cancel-btn-small {
    padding: 8px 16px; background: rgba(255,255,255,0.05); border: none; border-radius: 8px;
    color: white; font-size: 0.9rem; cursor: pointer;
}

.dgt-delete-link {
    background: none; border: none; color: #f87171; font-size: 0.9rem;
    cursor: pointer; text-decoration: underline; opacity: 0.8;
}
.dgt-delete-btn-confirm {
    flex: 1; padding: 8px; background: #ef4444; border: none; border-radius: 8px;
    color: white; font-weight: 600; cursor: pointer; font-size: 0.9rem;
}

/* Danger Zone */
.dgt-card-danger {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dgt-card-header-danger {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
    color: #ef4444;
}

.dgt-warning-text {
    font-size: 0.85rem; color: #fca5a5; margin-bottom: 10px;
}
.password-criteria-list {
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: left;
}

.criterion {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.criterion.valid {
    color: #4ade80 !important;
    font-weight: 500;
}

#dgt-title-group {
    margin-bottom: 30px;
}

#dgt-login-container h1 {
    display: block !important;
    color: #fffffe;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

#dgt-login-container .subtitle {
    color: #a0a0a0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

label {
    display: block;
    text-align: left;
    color: #a0a0a0;
    font-size: 0.8rem;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"], input[type="password"], input[type="email"] {
    width: 100% !important;
    background: #13131f !important; /* Very dark input bg */
    border: 1px solid #2d2d3f !important;
    color: white !important;
    padding: 12px 15px !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    height: auto !important;
}

input:focus {
    border-color: #8b5cf6 !important; /* Violet/Purple focus */
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
}

.dgt-action-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); /* Purple gradient */
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dgt-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    filter: brightness(1.1);
}

.dgt-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.5);
}


.dgt-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.9rem;
}

.dgt-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.dgt-links a:hover {
    color: #fff;
}

.dgt-divider {
    color: rgba(255, 255, 255, 0.2);
}

.dgt-footer {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 32px;
}

.dgt-error {
    color: #ff4444;
    margin-top: 20px;
    font-size: 14px;
    background: rgba(255, 68, 68, 0.1);
    padding: 10px;
    border-radius: 4px;
    display: none;
}
.dgt-error:not(:empty) { display: block; }

/* Hide standard elements better */
#loginform, #nav, #backtoblog, .language-switcher {
    display: none !important;
}
