.nsdl-pan-form-container,
.nsdl-pan-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nsdl-pan-form-container h2,
.nsdl-pan-dashboard h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.form-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h3 {
    color: #34495e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.note {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.hits-info {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: center;
}

.hits-info p {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.form-actions {
    text-align: center;
    padding: 25px;
}

.btn-primary {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-warning {
    background: #f39c12;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-small {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}

.btn-small:hover {
    background: #2980b9;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.hits-count {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin: 0;
}

.app-count {
    font-size: 36px;
    font-weight: bold;
    color: #27ae60;
    margin: 0;
}

.user-role {
    font-size: 18px;
    font-weight: 600;
    color: #8e44ad;
    margin: 0;
    text-transform: capitalize;
}

.status {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 12px;
}

.status.approved {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.status.submitted {
    background: #cce7ff;
    color: #004085;
}

.status.failed {
    background: #f8d7da;
    color: #721c24;
}

.quick-actions {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pending-approval,
.account-rejected {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.applications-table table,
.purchases-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.applications-table th,
.applications-table td,
.purchases-table th,
.purchases-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.applications-table th,
.purchases-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.recent-applications,
.recent-purchases {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recent-applications h3,
.recent-purchases h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.account-info {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-info h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-item label {
    font-weight: 600;
    color: #2c3e50;
}

.info-item span {
    color: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        text-align: center;
    }
    
    .applications-table,
    .purchases-table {
        overflow-x: auto;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

#form-loading {
    margin-top: 10px;
    color: #3498db;
    font-weight: 600;
}