/* Merchant Features CSS - Light Theme matching OneUPI Homepage */

/* Force light theme */
body {
    background-color: #ffffff !important;
    color: #374151 !important;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #ffffff;
}

/* Navbar for Dashboard */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F1BA3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .logo::before {
    content: '\f029';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: #0F1BA3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.logout-btn {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 6rem 0 2rem 0;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-menu {
    padding: 1rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: #f3f4f6;
    color: #0F1BA3;
}

.menu-item.active {
    background: #0F1BA3;
    color: white;
}

.menu-item i {
    width: 1.25rem;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 6rem 2rem 2rem 2rem;
    max-width: calc(100vw - 280px);
    background-color: #ffffff;
    height: 100vh;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #6b7280;
    font-size: 1rem;
}

/* Notification Cards */
.notification-cards {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.notification-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.notification-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.notification-icon {
    flex-shrink: 0;
}

.notification-icon img {
    width: 3rem;
    height: 3rem;
}

.notification-icon i {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    background: #0F1BA3;
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-content {
    flex: 1;
}

.notification-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.notification-content p {
    color: #6b7280;
    font-size: 0.875rem;
}

.verify-btn,
.connect-btn,
.enable-btn {
    background: #0F1BA3;
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 165px;
    font-size: 0.95rem;
}

.verify-btn:hover,
.connect-btn:hover,
.enable-btn:hover {
    background: #0c1789;
    color: white;
}

/* Stats Section */
.stats-section {
    margin-bottom: 2rem;
}

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

.stat-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #0F1BA3, #0c1789);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Chart Section */
.chart-section,
.activity-section {
    margin-bottom: 2rem;
}

.chart-card,
.activity-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.chart-header,
.activity-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3,
.activity-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.chart-container {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-data-chart {
    text-align: center;
    color: #9ca3af;
}

.no-data-chart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data-chart p {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.no-data-chart span {
    font-size: 0.875rem;
}

/* Activity Table */
.activity-table {
    overflow-x: auto;
}

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

.data-table th {
    background: #f9fafb;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.no-data td {
    text-align: center;
    padding: 3rem 1.5rem;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
}

.no-data-content i {
    font-size: 2rem;
    opacity: 0.5;
}

.no-data-content p {
    font-weight: 500;
    font-size: 1rem;
}

.no-data-content span {
    font-size: 0.875rem;
}

/* Alert Section */
.alert-section {
    margin-bottom: 2rem;
}

.alert-card {
    background: #fef3cd;
    border: 1px solid #fbbf24;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    color: #d97706;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert-content p {
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0F1BA3;
    color: white;
}

.btn-primary:hover {
    background: #0c1789;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #0F1BA3;
    border: 1px solid #0F1BA3;
}

.btn-outline:hover {
    background: #0F1BA3;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Transaction Report Specific Styles */
.filter-section {
    margin-bottom: 2rem;
}

.filter-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-control {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #1e293b !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: #0F1BA3;
    box-shadow: 0 0 0 3px rgba(15, 27, 163, 0.1);
}

.amount-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amount-range span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Summary Cards */
.transaction-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-card.success .summary-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-card.failed .summary-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.summary-card.pending .summary-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.summary-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.summary-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.summary-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.summary-info .count {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Table Section */
.table-section {
    margin-bottom: 2rem;
}

.table-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.table-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-container {
    overflow-x: auto;
}

/* Payment Report Specific Styles */
.analytics-section {
    margin-bottom: 2rem;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.analytics-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.analytics-header i {
    color: #0F1BA3;
    font-size: 1.25rem;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.stat .label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Payment Methods */
.payment-methods-section {
    margin-bottom: 2rem;
}

.payment-methods-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: #0F1BA3;
    background: #f8fafc;
}

.method-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0F1BA3;
    font-size: 1.125rem;
}

.method-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.method-info span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Pricing Cards */
.pricing-section {
    margin-bottom: 2rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border-color: #0F1BA3;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0F1BA3;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
}

.period {
    font-size: 1rem;
    color: #6b7280;
}

.description {
    color: #6b7280;
    font-size: 0.875rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.875rem;
}

.pricing-features i {
    color: #10b981;
    font-size: 1rem;
}

.pricing-btn {
    width: 100%;
    background: #0F1BA3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background: #0c1789;
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.comparison-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.comparison-table {
    overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.comparison-table td {
    color: #374151;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

/* Active Subscription Styles */
.subscription-overview {
    margin-bottom: 2rem;
}

.subscription-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.plan-status {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-price {
    text-align: right;
}

.plan-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.plan-price .period {
    color: #6b7280;
    font-size: 1rem;
}

.plan-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: #6b7280;
    font-size: 0.875rem;
}

.detail-row .value {
    color: #111827;
    font-weight: 500;
    font-size: 0.875rem;
}

.plan-actions {
    display: flex;
    gap: 1rem;
}

/* Usage Section */
.usage-section {
    margin-bottom: 2rem;
}

.usage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.usage-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.usage-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.usage-header i {
    color: #0F1BA3;
}

.usage-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #0F1BA3, #0c1789);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text .used {
    font-weight: 600;
    color: #111827;
}

.progress-text .total {
    color: #6b7280;
}

.usage-note {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Billing History */
.subscription-history {
    margin-bottom: 2rem;
}

.history-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.history-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-table {
    overflow-x: auto;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status.success {
    background: #d1fae5;
    color: #065f46;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Plan Features */
.plan-features {
    margin-bottom: 2rem;
}

.features-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.features-header {
    margin-bottom: 1.5rem;
}

.features-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f9fafb;
}

.feature-item.disabled {
    opacity: 0.5;
}

.feature-item i {
    font-size: 1rem;
}

.text-muted {
    color: #9ca3af;
}

/* Payment Settings Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.settings-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.settings-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.settings-form {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-group .form-control {
    flex: 1;
}

.ip-list {
    margin-top: 1rem;
}

.ip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #1e293b;
}

.ip-item .btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
}

.ip-item .btn-remove:hover {
    color: #dc2626;
}

.form-help {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.checkmark {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 1.5rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.125rem;
    width: 1.125rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #0F1BA3;
}

input:checked+.slider:before {
    transform: translateX(1.5rem);
}

/* Notification Settings */
.notification-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.notification-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.notification-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* API Credentials Styles */
.api-section {
    margin-bottom: 2rem;
}

.api-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.api-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.api-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #0F1BA3;
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.credential-info {
    flex: 1;
}

.credential-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.credential-value {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    background: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    word-break: break-all;
}

.copy-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e5e7eb;
}

/* Code Examples */
.code-examples {
    margin-bottom: 2rem;
}

.code-card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.code-header {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-tabs {
    display: flex;
    gap: 0.5rem;
}

.language-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-tab.active {
    background: #0F1BA3;
    color: white;
    border-color: #0F1BA3;
}

.code-content {
    padding: 1.5rem;
}

.code-block {
    background: #f3f4f6;
    color: #374151;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100vw;
    }

    .navbar {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 6rem 1rem 2rem 1rem;
    }

    .notification-card {
        flex-direction: column;
        text-align: center;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .plan-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .navbar-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .user-info {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* Light theme only - matching OneUPI homepage */

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Print styles */
@media print {

    .sidebar,
    .navbar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
    }

    .notification-cards,
    .chart-section {
        display: none;
    }
}