/* Public Styles for Instant PAN Plugin */
.ipp-pan-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ipp-user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.ipp-form {
    margin-top: 20px;
}

.ipp-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e4e7;
}

.ipp-form-section:last-child {
    border-bottom: none;
}

.ipp-form-section h3 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 1.2rem;
    font-weight: 600;
}

.ipp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ipp-form-group {
    display: flex;
    flex-direction: column;
}

.ipp-form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #23282d;
}

.ipp-form-group input,
.ipp-form-group select,
.ipp-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ipp-form-group input:focus,
.ipp-form-group select:focus,
.ipp-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.ipp-form-submit {
    text-align: center;
    margin-top: 30px;
}

.ipp-submit-btn {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.ipp-submit-btn:hover {
    background: linear-gradient(135deg, #005177, #003d5c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}

.ipp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ipp-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
}

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

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

.ipp-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* User Dashboard Styles */
.ipp-user-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ipp-dashboard-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.ipp-welcome-section {
    text-align: center;
    margin-bottom: 30px;
}

.ipp-welcome-section h2 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 2rem;
    font-weight: 700;
}

.ipp-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.ipp-user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.ipp-stat-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ipp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ipp-remaining-card {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
}

.ipp-stat-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.8;
}

.ipp-stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #23282d;
}

.ipp-stat-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.ipp-status-approved {
    color: #155724 !important;
}

.ipp-status-pending {
    color: #856404 !important;
}

.ipp-remaining {
    color: #0073aa !important;
}

.ipp-dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.ipp-action-btn {
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ipp-btn-icon {
    font-size: 1.2rem;
}

.ipp-action-btn.ipp-primary {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
}

.ipp-action-btn.ipp-primary:hover {
    background: linear-gradient(135deg, #005177, #003d5c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,115,170,0.3);
}

.ipp-action-btn.ipp-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: #fff;
}

.ipp-action-btn.ipp-secondary:hover {
    background: linear-gradient(135deg, #545b62, #495057);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108,117,125,0.3);
}

.ipp-action-btn.ipp-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.ipp-action-btn.ipp-success:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40,167,69,0.3);
}

.ipp-pending-notice,
.ipp-rejected-notice {
    background: #fff3cd;
    color: #856404;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #ffeaa7;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ipp-rejected-notice {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.ipp-notice-icon {
    font-size: 3rem;
    opacity: 0.8;
}

.ipp-notice-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.ipp-notice-content p {
    margin: 0;
    line-height: 1.6;
}

.ipp-dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
}

.ipp-section {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.ipp-section-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
}

.ipp-section-header h3 {
    margin: 0 0 20px 0;
    color: #23282d;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.ipp-section-icon {
    font-size: 1.3rem;
}

.ipp-table-container {
    padding: 25px;
    overflow-x: auto;
}

.ipp-table {
    width: 100%;
    border-collapse: collapse;
}

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

.ipp-table th {
    background: #f1f3f4;
    font-weight: 700;
    color: #23282d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ipp-table tr:hover {
    background: #f8f9fa;
}

.ipp-applicant-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ipp-applicant-info small {
    color: #666;
    font-size: 0.8rem;
}

.ipp-txn-id,
.ipp-token {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #495057;
}

.ipp-view-all {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
}

.ipp-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ipp-link:hover {
    color: #005177;
}

.ipp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.ipp-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.ipp-empty-state h4 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 1.1rem;
}

.ipp-empty-state p {
    margin: 0;
    line-height: 1.6;
}

.ipp-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.ipp-status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.ipp-action {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.ipp-action-credit {
    background: #d4edda;
    color: #155724;
}

.ipp-action-debit {
    background: #f8d7da;
    color: #721c24;
}

/* Hit Request Form Styles */
.ipp-hit-request-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ipp-hit-request-container h3 {
    margin: 0 0 20px 0;
    color: #23282d;
    text-align: center;
}

.ipp-purchase-option {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e4e7;
    text-align: center;
}

.ipp-purchase-option h4 {
    color: #23282d;
    margin-bottom: 15px;
}

.ipp-no-data {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipp-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ipp-user-stats {
        grid-template-columns: 1fr;
    }
    
    .ipp-stat-card {
        padding: 20px;
    }
    
    .ipp-stat-icon {
        font-size: 2rem;
        margin-right: 15px;
    }
    
    .ipp-dashboard-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ipp-action-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .ipp-dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .ipp-section {
        margin-bottom: 20px;
    }
    
    .ipp-section-header {
        padding: 15px 20px;
    }
    
    .ipp-table-container {
        padding: 20px;
    }
    
    .ipp-table th,
    .ipp-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .ipp-pending-notice,
    .ipp-rejected-notice {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ipp-notice-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .ipp-welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .ipp-subtitle {
        font-size: 1rem;
    }
    
    .ipp-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .ipp-stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ipp-form-group input,
    .ipp-form-group select,
    .ipp-form-group textarea {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}