/**
 * NSDL Payment Bank - User Styles
 */

/* Base styles */
.npb-form-container,
.npb-user-dashboard,
.npb-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Card styles */
.npb-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.npb-card-header {
    padding: 15px 20px;
    background: #f9fafb;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.npb-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.npb-card-header h3 i {
    margin-right: 8px;
    color: #3498db;
}

.npb-card-body {
    padding: 20px;
}

.npb-card-inner {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

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

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

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

.npb-status-inactive, 
.npb-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Agent details page */
.npb-agent-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.npb-agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #3498db;
}

.npb-agent-info {
    flex: 1;
    min-width: 250px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.npb-info-group {
    margin-bottom: 10px;
}

.npb-info-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 3px;
    font-weight: 500;
}

.npb-info-value {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.npb-bc-code {
    font-family: monospace;
    font-size: 16px;
    color: #3498db;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.npb-agent-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Info bar */
.npb-agent-info-bar {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.npb-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.npb-info-label {
    font-weight: 500;
    color: #6c757d;
}

.npb-info-value {
    font-weight: 600;
    color: #2c3e50;
}

.npb-hit-limit {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 14px;
}

/* Form styles */
.npb-form {
    max-width: 100%;
}

.npb-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.npb-form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

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

.npb-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.npb-form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.npb-form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.npb-form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.npb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.npb-btn i {
    font-size: 14px;
}

.npb-btn-primary {
    background-color: #3498db;
    color: white;
}

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

.npb-btn-secondary {
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #dcdfe6;
}

.npb-btn-secondary:hover {
    background-color: #e9ecef;
    color: #212529;
}

.npb-btn-success {
    background-color: #2ecc71;
    color: white;
}

.npb-btn-success:hover {
    background-color: #27ae60;
    color: white;
}

.npb-btn-info {
    background-color: #00bcd4;
    color: white;
}

.npb-btn-info:hover {
    background-color: #00a5bb;
    color: white;
}

.npb-btn-warning {
    background-color: #f39c12;
    color: white;
}

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

.npb-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.npb-btn-danger:hover {
    background-color: #c0392b;
    color: white;
}

.npb-btn-small {
    font-size: 12px;
    padding: 6px 10px;
}

/* Notification styles */
.npb-notice {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.npb-notice i {
    margin-right: 10px;
    font-size: 16px;
}

.npb-notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.npb-notice-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.npb-notice-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.npb-notice-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Dashboard styles */
.npb-dashboard-header {
    margin-bottom: 20px;
}

.npb-welcome-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.npb-welcome-card::before,
.npb-welcome-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.npb-welcome-card::before {
    width: 120px;
    height: 120px;
    right: -30px;
    top: -30px;
}

.npb-welcome-card::after {
    width: 80px;
    height: 80px;
    left: 20%;
    bottom: -40px;
}

.npb-welcome-content {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.npb-welcome-icon {
    font-size: 36px;
}

.npb-welcome-text h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 500;
}

.npb-welcome-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.npb-highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.npb-agent-stats {
    display: flex;
    gap: 15px;
    z-index: 1;
    flex-wrap: wrap;
}

.npb-stat {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    min-width: 80px;
}

.npb-stat-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 3px;
}

.npb-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* Dashboard tabs */
.npb-dashboard-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.npb-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dcdfe6;
}

.npb-action-btn i {
    color: #3498db;
}

.npb-action-btn:hover {
    background-color: #e9ecef;
    color: #343a40;
}

.npb-action-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.npb-action-btn.active i {
    color: white;
}

/* Tables */
.npb-table-responsive {
    overflow-x: auto;
}

.npb-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

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

.npb-table th {
    font-weight: 600;
    background-color: #f8f9fa;
    color: #495057;
}

.npb-table tbody tr:hover {
    background-color: #f9fafb;
}

.npb-table .npb-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Search inputs */
.npb-search-input {
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.npb-search-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.npb-no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Action buttons */
.npb-action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* Amount displays */
.npb-amount-credit {
    color: #2ecc71;
    font-weight: 500;
}

.npb-amount-debit {
    color: #e74c3c;
    font-weight: 500;
}

/* Animation for elements */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 20px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .npb-agent-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .npb-agent-info {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .npb-welcome-card {
        flex-direction: column;
    }
    
    .npb-agent-stats {
        justify-content: center;
        width: 100%;
    }
    
    .npb-form-row {
        flex-direction: column;
    }
    
    .npb-form-group {
        width: 100%;
    }
    
    .npb-dashboard-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .npb-action-btn {
        white-space: nowrap;
    }
}

/* Utility classes */
.npb-text-muted {
    color: #6c757d;
    font-style: italic;
}