/* Modal Styles */
.np-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.np-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.np-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.np-modal-overlay.active .np-modal-dialog {
    transform: translateY(0);
}

.np-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.np-modal-close:hover {
    opacity: 1;
}

.np-switch-modal {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 500;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}
.np-switch-modal:hover {
    text-decoration: underline;
}

.np-auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.np-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    text-align: center;
}

.np-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px 0;
    text-align: center;
}

.np-form-group {
    margin-bottom: 20px;
}

.np-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.np-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.np-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Password eye toggle */
.np-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.np-pass-wrap input {
    padding-right: 48px !important;
    width: 100%;
}

.np-eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.np-eye-toggle:hover {
    color: #3b82f6;
}

.np-auth-actions {
    margin-bottom: 24px;
    font-size: 14px;
    color: #475569;
}

.np-auth-btn {
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.np-auth-btn:hover {
    background: #2563eb;
}

.np-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.np-auth-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.np-auth-footer a:hover {
    text-decoration: underline;
}

.np-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.np-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.np-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    display: block;
}

/* Dashboard UI */
.np-dashboard-container {
    display: flex;
    max-width: 1000px;
    margin: 40px auto;
    gap: 32px;
    padding: 0 20px;
}

.np-dashboard-sidebar {
    width: 250px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
}

.np-user-profile {
    text-align: center;
    padding: 0 24px 24px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.np-user-profile img {
    border-radius: 50%;
    margin-bottom: 12px;
}

.np-user-profile h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #0f172a;
}

.np-user-role {
    font-size: 12px;
    background: #eff6ff;
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.np-dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.np-dashboard-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.np-dashboard-nav li a:hover,
.np-dashboard-nav li.active a {
    background: #f8fafc;
    color: #3b82f6;
    border-right: 3px solid #3b82f6;
}

.np-dashboard-nav li a .dashicons {
    margin-right: 12px;
}

.np-dashboard-content {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.np-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.np-info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.np-info-item p {
    margin: 8px 0 0 0;
    font-size: 16px;
    color: #0f172a;
    font-weight: 500;
}

@media (max-width: 768px) {
    .np-dashboard-container {
        flex-direction: column;
    }
    .np-dashboard-sidebar {
        width: 100%;
    }
}

/* Dashboard Forms & Saved Posts Grid */
.np-dashboard-panel h2 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.np-dashboard-panel .np-form-group label {
    color: #475569;
}

.np-saved-posts-grid .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.np-saved-posts-grid .post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.np-saved-posts-grid .post-content {
    padding: 15px;
}

.np-saved-posts-grid .entry-title {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.np-toggle-save-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    font-weight: 600;
}

.np-toggle-save-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    margin-top: 2px;
}

.np-toggle-save-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.np-toggle-save-btn.saved {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.social-share-list .np-toggle-save-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
    padding: 0;
    border-radius: 50px;
}

.social-share-list .np-toggle-save-btn.saved {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    padding: 0 15px;
}
