* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }

/* Login Page */
.n2-login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.n2-login-container { width: 100%; max-width: 450px; padding: 20px; }
.n2-login-box { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.n2-login-title { text-align: center; margin-bottom: 30px; color: #667eea; font-size: 28px; font-weight: 700; }

/* Login Tabs */
.n2-login-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.n2-tab-btn { flex: 1; padding: 12px; border: 2px solid #e0e0e0; background: white; cursor: pointer; border-radius: 5px; font-size: 14px; font-weight: 600; transition: all 0.3s; }
.n2-tab-btn:hover { background: #f5f5f5; }
.n2-tab-btn.active { background: #667eea; color: white; border-color: #667eea; }

/* Forms */
.n2-form-group { margin-bottom: 20px; }
.n2-form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; font-size: 14px; }
.n2-form-group small { display: block; margin-top: 5px; color: #888; font-size: 12px; }
.n2-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; transition: border-color 0.3s; }
.n2-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
textarea.n2-input { resize: vertical; font-family: inherit; }

/* Buttons */
.n2-btn { padding: 12px 24px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; display: inline-block; text-decoration: none; text-align: center; }
.n2-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.n2-btn-primary { background: #667eea; color: white; }
.n2-btn-primary:hover { background: #5568d3; }
.n2-btn-success { background: #28a745; color: white; }
.n2-btn-success:hover { background: #218838; }
.n2-btn-warning { background: #ffc107; color: #333; }
.n2-btn-warning:hover { background: #e0a800; }
.n2-btn-danger { background: #dc3545; color: white; }
.n2-btn-danger:hover { background: #c82333; }
.n2-btn-secondary { background: #6c757d; color: white; }
.n2-btn-secondary:hover { background: #5a6268; }
.n2-btn-dark { background: #343a40; color: white; }
.n2-btn-dark:hover { background: #23272b; }
.n2-btn-block { width: 100%; }
.n2-btn-sm { padding: 6px 12px; font-size: 12px; }

/* Navigation */
.n2-navbar { background: #2c3e50; color: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.n2-nav-brand { font-size: 20px; font-weight: bold; }
.n2-nav-menu { list-style: none; display: flex; gap: 5px; align-items: center; }
.n2-nav-menu li { display: inline; }
.n2-nav-menu a { color: white; text-decoration: none; padding: 8px 15px; border-radius: 5px; transition: background 0.3s; display: inline-block; }
.n2-nav-menu a:hover { background: rgba(255,255,255,0.15); }
.n2-btn-logout { background: #e74c3c !important; color: white; }
.n2-btn-logout:hover { background: #c0392b !important; }
.n2-user-info { font-size: 14px; }

/* Container */
.n2-container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.n2-page-title { font-size: 32px; margin-bottom: 30px; color: #2c3e50; font-weight: 700; }
.n2-section-title { font-size: 22px; margin: 30px 0 20px; color: #2c3e50; font-weight: 600; }
.n2-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }

/* Stats Grid */
.n2-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.n2-stat-card { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); text-decoration: none; color: inherit; transition: all 0.3s; }
.n2-stat-card:hover { transform: translateY(-5px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.n2-stat-card h3 { font-size: 16px; color: #666; margin-bottom: 10px; font-weight: 600; }
.n2-stat-number { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.n2-stat-icon { font-size: 48px; text-align: center; font-weight: bold; color: #667eea; }
.n2-stat-link { color: #667eea; font-size: 14px; font-weight: 600; }

.n2-stat-pending { border-left: 4px solid #ffc107; }
.n2-stat-pending .n2-stat-number { color: #ffc107; }
.n2-stat-approved { border-left: 4px solid #28a745; }
.n2-stat-approved .n2-stat-number { color: #28a745; }
.n2-stat-rejected { border-left: 4px solid #dc3545; }
.n2-stat-rejected .n2-stat-number { color: #dc3545; }
.n2-stat-users { border-left: 4px solid #667eea; }
.n2-stat-users .n2-stat-number { color: #667eea; }
.n2-stat-total { border-left: 4px solid #17a2b8; }
.n2-stat-total .n2-stat-number { color: #17a2b8; }
.n2-stat-create { border-left: 4px solid #6c757d; }

/* Tables */
.n2-table-container { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow-x: auto; }
.n2-table { width: 100%; border-collapse: collapse; }
.n2-table thead { background: #f8f9fa; }
.n2-table th, .n2-table td { padding: 15px; text-align: left; border-bottom: 1px solid #e0e0e0; }
.n2-table th { font-weight: 600; color: #555; font-size: 14px; }
.n2-table td { font-size: 14px; }
.n2-table tbody tr:hover { background: #f8f9fa; }
.n2-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.n2-badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.n2-badge-pending { background: #fff3cd; color: #856404; }
.n2-badge-approved { background: #d4edda; color: #155724; }
.n2-badge-rejected { background: #f8d7da; color: #721c24; }
.n2-badge-draft { background: #e2e3e5; color: #383d41; }
.n2-badge-active { background: #d4edda; color: #155724; }
.n2-badge-inactive { background: #f8d7da; color: #721c24; }

/* Alerts */
.n2-alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.n2-alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.n2-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Form Layouts */
.n2-form { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.n2-form-actions { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.n2-action-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* News Detail */
.n2-news-detail { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.n2-news-header h2 { font-size: 28px; margin-bottom: 10px; color: #2c3e50; }
.n2-news-meta { color: #666; margin-bottom: 20px; font-size: 14px; }
.n2-news-image { max-width: 100%; height: auto; margin: 20px 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.n2-news-content { line-height: 1.8; margin-bottom: 30px; font-size: 15px; }

/* Modal */
.n2-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.n2-modal.active { display: flex; align-items: center; justify-content: center; }
.n2-modal-content { background: white; padding: 40px; border-radius: 10px; max-width: 500px; width: 90%; position: relative; max-height: 90vh; overflow-y: auto; }
.n2-modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; transition: color 0.3s; }
.n2-modal-close:hover { color: #333; }
.n2-modal-content h2 { margin-bottom: 20px; color: #2c3e50; }

/* Responsive */
@media (max-width: 768px) {
    .n2-stats-grid { grid-template-columns: 1fr; }
    .n2-navbar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .n2-nav-menu { flex-direction: column; width: 100%; gap: 5px; }
    .n2-nav-menu a { display: block; }
    .n2-table { font-size: 12px; }
    .n2-table th, .n2-table td { padding: 10px; }
    .n2-action-buttons, .n2-form-actions { flex-direction: column; }
    .n2-action-buttons .n2-btn, .n2-form-actions .n2-btn { width: 100%; }
    .n2-page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .n2-container { padding: 0 15px; }
    .n2-page-title { font-size: 24px; }
    .n2-login-box { padding: 30px 20px; }
}


/*second round salam manually added here */
/* Category Checkboxes */
.n2-category-checkboxes { 
    max-height: 400px; 
    overflow-y: auto; 
    border: 1px solid #ddd; 
    padding: 15px; 
    border-radius: 5px; 
    background: #f9f9f9; 
}

.n2-category-group { 
    margin-bottom: 15px; 
}

.n2-checkbox-label { 
    display: block; 
    padding: 8px; 
    cursor: pointer; 
    transition: background 0.2s; 
    border-radius: 3px; 
}

.n2-checkbox-label:hover { 
    background: #e8e8e8; 
}

.n2-checkbox-label input[type="checkbox"] { 
    margin-right: 8px; 
    cursor: pointer; 
}

.n2-parent-category { 
    background: #fff; 
    border: 1px solid #ddd; 
    padding: 10px; 
    margin-bottom: 5px; 
    font-weight: 600; 
}

.n2-child-categories { 
    margin-left: 30px; 
    margin-top: 5px; 
}

.n2-child-category { 
    padding: 6px 10px; 
    font-size: 14px; 
}

.n2-reset-info { 
    background: #f8f9fa; 
    padding: 10px; 
    border-radius: 5px; 
    margin-bottom: 15px; 
    font-weight: 600; 
}
