/* dashboard.css */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 70px;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-color);
    color: var(--dark-color);
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 24px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-user {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.user-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 12px;
    color: var(--gray-500);
}

.sidebar.collapsed .user-info {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s;
    margin: 4px 8px;
    border-radius: var(--border-radius);
}

.nav-item i {
    width: 20px;
    font-size: 18px;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s;
    min-height: 100vh;
    background: var(--light-color);
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Bar */
.top-bar {
    height: var(--header-height);
    background: white;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
}

.top-bar-left h1 {
    font-size: 20px;
    color: var(--gray-800);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    width: 300px;
}

/* Notifications */
.notifications {
    position: relative;
    cursor: pointer;
}

.notifications i {
    font-size: 20px;
    color: var(--gray-600);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    margin-top: 10px;
    display: none;
    z-index: 1000;
}

.notifications:hover .notifications-dropdown {
    display: block;
}

.notifications-header {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h4 {
    font-size: 14px;
}

.notifications-header button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: var(--gray-100);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.05);
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
}

.notification-message {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 3px;
}

.notification-time {
    font-size: 10px;
    color: var(--gray-400);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.user-menu img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    margin-top: 10px;
    display: none;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: var(--gray-100);
}

.user-dropdown a i {
    width: 16px;
}

/* Freeze Notification */
.freeze-notification {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
    color: white;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px;
    border-radius: var(--border-radius);
}

.freeze-notification i {
    font-size: 24px;
}

.freeze-content {
    flex: 1;
}

.freeze-content strong {
    display: block;
    margin-bottom: 5px;
}

.freeze-content p {
    font-size: 14px;
    opacity: 0.9;
}

.btn-warning {
    background: white;
    color: var(--danger-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-warning:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* Content Pages */
.content-pages {
    padding: 24px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.welcome-card p {
    opacity: 0.9;
}

.date-time {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.balance-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.balance-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--gray-500);
    font-size: 14px;
}

.balance-label i {
    cursor: pointer;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.balance-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-change.positive {
    color: var(--success-color);
}

.balance-change.negative {
    color: var(--danger-color);
}

.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 10px 0 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.progress-label {
    font-size: 12px;
    color: var(--gray-500);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.chart-card h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gray-700);
}

/* Recent Transactions */
.recent-transactions {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: background 0.3s;
}

.transaction-item:hover {
    background: var(--gray-100);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.transaction-details {
    flex: 1;
}

.transaction-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.transaction-date {
    font-size: 12px;
    color: var(--gray-500);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
}

/* Transfer Section */
.transfer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.transfer-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.transfer-form {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.transfer-info {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.transfer-info h4 {
    margin-bottom: 15px;
}

.transfer-info ul {
    list-style: none;
}

.transfer-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-600);
    font-size: 14px;
}

.transfer-info i {
    color: var(--primary-color);
    width: 20px;
}

.currency-input {
    position: relative;
}

.currency-input span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--gray-500);
}

.currency-input input {
    padding-left: 30px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card-item {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 24px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--box-shadow-lg);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border-radius: 5px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-family: monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.card-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
}

.card-status.active {
    background: var(--success-color);
}

.card-status.frozen {
    background: var(--warning-color);
}

.card-status.lost {
    background: var(--danger-color);
}

/* Support Container */
.support-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.support-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.tickets-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 15px;
}

.ticket-item {
    padding: 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 5px;
}

.ticket-item:hover {
    background: var(--gray-100);
}

.ticket-item.active {
    background: var(--primary-color);
    color: white;
}

.ticket-subject {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
}

.ticket-priority {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    display: inline-block;
}

.priority-high {
    background: var(--danger-color);
    color: white;
}

.priority-medium {
    background: var(--warning-color);
    color: white;
}

.priority-low {
    background: var(--success-color);
    color: white;
}

.chat-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 70%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.message-content {
    background: var(--gray-100);
    padding: 10px;
    border-radius: 12px;
}

.message.user .message-content {
    background: var(--primary-color);
    color: white;
}

.message-time {
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 3px;
    text-align: right;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.settings-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.security-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.security-option:last-child {
    border-bottom: none;
}

.security-option p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 3px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* OTP Input */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.payment-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + i {
    color: var(--primary-color);
}

.payment-option i {
    font-size: 24px;
    color: var(--gray-400);
}

.payment-option span {
    font-size: 12px;
    font-weight: 500;
}

/* Card Price */
.card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.card-price strong {
    font-size: 20px;
    color: var(--primary-color);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ────────────────────────────────
   DASHBOARD – strong mobile support
───────────────────────────────── */

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

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

  .top-bar {
    padding: 12px 16px;
  }

  .mobile-menu-btn {
    display: block !important;
    font-size: 1.5rem;
    padding: 8px;
  }

  .search-box {
    display: none;
  }
}

@media (max-width: 800px) {
  .balance-cards,
  .stats-grid,
  .charts-grid,
  .transfer-form-container,
  .settings-grid {
    grid-template-columns: 1fr !important;
    /*gap: 16px;*/
  }

  .welcome-card {
    padding: 20px;
  }

  .balance-amount {
    font-size: 1.9rem;
  }

  .nav-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sidebar-header {
    padding: 0 16px;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .user-avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .balance-card {
    padding: 16px;
  }

  .balance-amount {
    font-size: 1.7rem;
  }

  .btn,
  .btn-primary,
  .btn-outline {
    /*width: 100%;*/
    justify-content: center;
    padding: 12px 20px;
  }

  .modal-content {
    margin: 12px;
    border-radius: 12px;
  }

  .modal-header h3 {
    font-size: 1.3rem;
  }

  .otp-inputs input {
    width: 42px;
    height: 50px;
    font-size: 1.4rem;
  }
}

@media (max-width: 360px) {
  .balance-amount {
    font-size: 1.55rem;
  }

  .progress-bar {
    height: 8px;
  }

  .nav-item {
    padding: 10px 16px;
    margin: 3px 6px;
  }

  .nav-item i {
    font-size: 1.2rem;
  }

  .nav-item span {
    font-size: 0.85rem;
  }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .transfer-form-container {
        grid-template-columns: 1fr;
    }
    
    .support-container {
        grid-template-columns: 1fr;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .search-box input:focus {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .top-bar-right {
        gap: 10px;
    }
    
    .search-box {
        display: none;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}




/* ── Live Support Chat (User side) ──────────────────────────────────────── */

.chat-messages {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;          /* light background */
}

.message {
  max-width: 75%;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.message.user-message {
  align-self: flex-end;
  align-items: flex-end;
}

.message.admin-message {
  align-self: flex-start;
  align-items: flex-start;
}

.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.4;
  word-break: break-word;
}

.message.message.user-message .bubble {
  background: #3b82f6;          /* blue for sent (your messages) */
  color: white;
  border-bottom-right-radius: 4px;
}

.message.message.admin-message .bubble {
  background: #e2e8f0;          /* gray for received (admin) */
  color: #1e293b;
  border-bottom-left-radius: 4px;
}

.time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: -10px;
}

/* Input area */
.chat-input-area {
  display: flex;
  padding: 12px;
  background: white;
  border-top: 1px solid #e2e8f0;
  gap: 8px;
}

.chat-input-area input{
   flex: 1;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  font-size: 15px;

}

#sendChatBtn {
  padding: 0 20px!important;
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
  border-radius: 24px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  width: 70px!important;
}

#sendChatBtn:hover {
  background: #2563eb !important;
}

.empty-chat,
.no-messages {
  text-align: center;
  color: #64748b;
  padding: 60px 20px;
  font-style: italic;
}


/* ==========================================================================
   LIVE CHAT — Shared mobile-first styles for user dashboard & admin dashboard
   Target: 280–800 px wide screens (old Androids, small iPhones, etc.)
   2025 best practices for banking/chat UX
   ========================================================================== */

/* Common container reset */
.chat-container,
.live-chat-container,
#chatMessages,
#adminChatMessages {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  -webkit-overflow-scrolling: touch;     /* smooth iOS scrolling */
}

/* Message list area */
#chatMessages,
#adminChatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Message row */
.message {
  display: flex;
  flex-direction: column;
  margin: 8px 2px;
  max-width: 84%;
  font-size: 15px;
  line-height: 1.38;
}

.message.user-message {
  align-self: flex-end;
  align-items: flex-end;
}

.message.admin-message {
  align-self: flex-start;
  align-items: flex-start;
}

.bubble {
  padding: 9px 13px;
  border-radius: 18px;
  word-break: break-word;
  hyphens: auto;
}

.message.sent .bubble {
  background: #2563eb;
  color: white;
  border-bottom-right-radius: 5px;
}

.message.received .bubble {
  background: #e5e7eb;
  color: #111827;
  border-bottom-left-radius: 5px;
}

.timestamp {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  opacity: 0.9;
}

/* ── Input + Send button area ──────────────────────────────────────── */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.chat-input-area input[type="text"] {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #f9fafb;
}

.chat-input-area input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.chat-input-area button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  border: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  touch-action: manipulation;
}

.chat-input-area button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* ── Very small screens adjustments ────────────────────────────────── */

@media (max-width: 480px) {
  .message {
    max-width: 86%;
    margin: 7px 1px;
    font-size: 14.8px;
  }

  .bubble {
    padding: 8px 12px;
    border-radius: 17px;
  }

  .time {
    font-size: 10.5px;
  }

  .chat-input-area {
    padding: 9px 10px;
    gap: 7px;
  }

  .chat-input-area input {
    font-size: 14.8px;
    padding: 9px 13px;
  }

  .chat-input-area button {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .message {
    max-width: 88%;
    font-size: 14.5px;
  }

  .bubble {
    padding: 8px 11px;
    border-radius: 16px;
  }

  .chat-input-area input {
    font-size: 14.5px;
    padding: 9px 12px;
  }

  .chat-input-area button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 340px) {
  .message {
    max-width: 90%;
    font-size: 14.2px;
  }

  .bubble {
    padding: 7px 10px;
    border-radius: 15px;
  }

  .times {
    font-size: 10px;
  }

  .chat-input-area {
    padding: 8px 8px;
    gap: 6px;
  }

  .chat-input-area input {
    font-size: 14.2px;
    padding: 8px 12px;
  }

  .chat-input-area button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 300px) {
  .message {
    max-width: 92%;
    font-size: 14px;
  }

  .bubble {
    padding: 7px 10px;
  }

  .chat-input-area input {
    font-size: 14px;
    padding: 8px 11px;
  }
}

/* ── Admin user list (sidebar / left column) ───────────────────────── */

.user-row {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  touch-action: manipulation;
}

.user-row.active,
.user-row[style*="background"] {
  background: #dbeafe !important;
  border-left: 4px solid #3b82f6;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.user-email {
  font-size: 13px;
  color: #6b7280;
  margin-top: 3px;
}

/* Smaller admin list */
@media (max-width: 480px) {
  .user-row {
    padding: 10px 12px;
  }

  .user-name {
    font-size: 14.8px;
  }

  .user-email {
    font-size: 12.8px;
  }
}

@media (max-width: 360px) {
  .user-row {
    padding: 9px 10px;
  }

  .user-name {
    font-size: 14.5px;
  }

  .user-email {
    font-size: 12.5px;
  }
}

/* ── Empty state ───────────────────────────────────────────────────── */

.empty-chat,
.no-messages {
  align-self: center;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
  padding: 60px 24px 40px;
  line-height: 1.45;
}

@media (max-height: 620px) {
  .empty-chat,
  .no-messages {
    padding: 40px 20px 24px;
    font-size: 14.5px;
  }
}

.account-number {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 4px;
  font-family: monospace;
  letter-spacing: 1px;
}


/* ==================== ADD MONEY SECTION ==================== */
.add-money-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    
}



.card-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    
}

.saved-cards {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
}

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

.note {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

.saved-card-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 992px) {
    .add-money-container {
        grid-template-columns: 1fr;
    }
}
.btnn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}   

.btn-primaryy {
    background: var(--primary-color);
    color: white;
}

.btn-primaryy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}



/* Mobile Sidebar Styles */
@media (max-width: 1024px) {
 
    /* Mobile menu button styling */
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--gray-600);
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.2s;
    }
    
    .mobile-menu-btn:hover {
        background: var(--gray-100);
        color: var(--primary-color);
    }
    
    /* Top bar adjustments */
    .top-bar {
        padding: 12px 16px;
    }
    
    .top-bar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .top-bar-left h1 {
        font-size: 1.2rem;
        margin: 0;
    }
    
    /* Search box hide on mobile */

    
    /* Notifications and user menu adjustments */
    .top-bar-right {
        gap: 12px;
    }
    
    .notifications i,
    .user-menu i {
        font-size: 1.2rem;
    }
    
    /* Overlay animation */
    .sidebar-overlay,
    .admin-sidebar-overlay {
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
}

/* Small screens adjustments */
@media (max-width: 480px) {
    .sidebar,
    .admin-sidebar {
        width: 260px;
    }
    
    .top-bar-left h1 {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.2rem;
        padding: 6px;
    }
    
    .user-menu span {
        display: none;
    }
}


/* External Transfer Styles */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.provider-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.provider-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.provider-card.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.provider-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 10px;
}

.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-back:hover {
    text-decoration: underline;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.external-transfer-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

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

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 640px) {
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .provider-card {
        padding: 12px;
    }
    
    .provider-logo {
        width: 40px;
        height: 40px;
    }
}

