/* TrustBeam Credit Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.login-header .logo i {
    font-size: 2.5rem;
    color: #667eea;
    margin-right: 15px;
}

.login-header h1 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.login-header p {
    color: #666;
    font-size: 1rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.login-form label i {
    margin-right: 8px;
    color: #667eea;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-login i {
    margin-right: 8px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-footer p {
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.login-footer .note {
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

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

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

/* Admin Panel Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Header Styles */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar i {
    position: absolute;
    left: 15px;
    color: #999;
}

.search-bar input {
    padding: 10px 15px 10px 40px;
    border: none;
    border-radius: 25px;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.search-bar input:focus {
    outline: none;
    background: white;
}

.header-right {
    display: flex;
    align-items: center;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-dropdown i {
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.profile-dropdown:hover i {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1001;
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f5f7fa;
}

/* Sidebar Styles */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.sidebar-header h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #666;
    font-size: 0.9rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.sidebar-nav li.active a {
    background-color: #f0f2ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.sidebar-nav i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.submenu-toggle {
    justify-content: space-between;
}

.submenu {
    display: none;
    background: #f8f9fa;
    margin-left: 20px;
}

.has-submenu.active .submenu {
    display: block;
}

.submenu li {
    margin-bottom: 0;
}

.submenu a {
    padding: 8px 20px 8px 40px;
    font-size: 0.9rem;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    margin-top: 70px;
    padding: 30px;
    background: #f5f7fa;
    min-height: calc(100vh - 70px);
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #666;
    font-size: 1.1rem;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

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

.section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.section-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.recent-users, .recent-transactions {
    padding: 20px;
}

.user-item, .transaction-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.user-item:last-child, .transaction-item:last-child {
    border-bottom: none;
}

.user-avatar, .transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.user-avatar i, .transaction-icon i {
    color: #667eea;
    font-size: 1rem;
}

.user-info, .transaction-info {
    flex: 1;
}

.user-info h4, .transaction-info h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 3px;
}

.user-info p, .transaction-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.user-status, .transaction-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.user-status.active, .transaction-status.completed {
    background: #d4edda;
    color: #155724;
}

.user-status.pending, .transaction-status.pending {
    background: #fff3cd;
    color: #856404;
}

.user-status.inactive, .transaction-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.user-actions {
    margin-left: 15px;
}

.btn-view {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.btn-view:hover {
    background: #5a6fd8;
}

.transaction-amount {
    font-weight: 600;
    color: #28a745;
}

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

/* Form Styles */
.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.create-user-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-fill.weak {
    width: 25%;
    background-color: #ff4757;
}

.strength-fill.fair {
    width: 50%;
    background-color: #ffa502;
}

.strength-fill.good {
    width: 75%;
    background-color: #2ed573;
}

.strength-fill.strong {
    width: 100%;
    background-color: #1e90ff;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.date-input {
    position: relative;
}

.date-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.file-upload-label i {
    margin-right: 8px;
    color: #667eea;
}

.file-name {
    margin-left: 10px;
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 0 20px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .search-bar input {
        width: 200px;
    }
    
    .admin-main {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .search-bar input {
        width: 150px;
    }
    
    .admin-header {
        padding: 0 15px;
    }
    
    .admin-main {
        padding: 15px;
    }
}

/* Users Management Styles */
.filters-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.filters-form {
    width: 100%;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

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

.filter-group label {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions .btn-primary,
.filter-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.table-header h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
}

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

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.users-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e1e5e9;
}

.users-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

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

/* User Info Cell */
.user-info-cell {
    min-width: 200px;
}

.user-avatar {
    display: inline-block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    float: left;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar i {
    color: #667eea;
    font-size: 1.2rem;
}

.user-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
}

.username {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 5px 0;
}

.account-type {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Account Info Cell */
.account-info {
    min-width: 150px;
}

.info-item {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

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

.info-item strong {
    color: #555;
}

/* Contact Info Cell */
.contact-info {
    min-width: 200px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info .info-item i {
    color: #667eea;
    width: 16px;
}

/* Status Cell */
.status-cell {
    text-align: center;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

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

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

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

.status-suspended {
    background: #e2e3e5;
    color: #383d41;
}

/* Date Cell */
.date-cell {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Actions Cell */
.actions-cell {
    text-align: center;
    min-width: 120px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-view {
    background: #667eea;
    color: white;
}

.btn-view:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-edit {
    background: #28a745;
    color: white;
}

.btn-edit:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-more {
    background: #6c757d;
    color: white;
}

.btn-more:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
}

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

.dropdown-content select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.btn-delete {
    width: 100%;
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 25px;
    border-top: 1px solid #e1e5e9;
}

/* Large Modal Styles */
.modal-large {
    max-width: 900px;
    margin: 2% auto;
}

/* User Details Styles */
.user-details {
    padding: 20px 0;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.detail-column h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

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

.detail-item label {
    font-weight: 600;
    color: #34495e;
    min-width: 120px;
}

.detail-item span {
    color: #2c3e50;
    text-align: right;
    flex: 1;
}

.detail-item .balance {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.detail-item .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Edit User Form Styles */
.edit-user-form {
    padding: 20px 0;
}

.edit-user-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.edit-user-form .form-column h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.edit-user-form .form-group {
    margin-bottom: 15px;
}

.edit-user-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.edit-user-form .form-group input,
.edit-user-form .form-group select,
.edit-user-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.edit-user-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-user-form .form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.edit-user-form .form-actions .btn {
    margin: 0 10px;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    background-color: #fdf2f2;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Responsive Design for Modals */
@media (max-width: 768px) {
    .modal-large {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .edit-user-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-item span {
        text-align: left;
        margin-top: 5px;
    }
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-link:hover {
    background: #f0f2ff;
    border-color: #667eea;
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Transactions Management Styles */
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.transactions-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #e1e5e9;
}

.transactions-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

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

/* Transaction Details Cell */
.transaction-details {
    min-width: 200px;
}

.transaction-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.transaction-type {
    color: #667eea;
    font-size: 0.85rem;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.transaction-desc {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Sender/Recipient Info */
.sender-info,
.recipient-info {
    min-width: 180px;
}

.account-info {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.account-info strong {
    color: #555;
}

.user-info {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.external {
    color: #6c757d;
    font-style: italic;
    font-size: 0.8rem;
}

/* Amount Cell */
.amount-cell {
    text-align: center;
    min-width: 120px;
}

.amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}

.fee {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Date Cell */
.date-cell {
    text-align: center;
    min-width: 100px;
}

.date {
    color: #333;
    font-weight: 500;
    margin-bottom: 3px;
}

.time {
    color: #666;
    font-size: 0.8rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Enhanced Filter Row for Transactions */
.transactions-page .filter-row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
    gap: 15px;
}

/* Status Badges for Transactions */
.status-processing {
    background: #e3f2fd;
    color: #1976d2;
}

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

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

.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Status Badges for Applications */
.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-suspended {
    background: #e2e3e5;
    color: #383d41;
}

/* Transaction Type Badge */
.type-badge {
    background: #f0f2ff;
    color: #667eea;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
}

/* User Info Cell */
.user-info {
    min-width: 180px;
}

.user-name {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Deposit Info Cell */
.deposit-info {
    min-width: 200px;
}

.deposit-info .info-item {
    margin-bottom: 8px;
    font-size: 0.85rem;
}

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

.deposit-info .info-item strong {
    color: #555;
}

/* Account Number Display */
.account-number {
    background: #f8f9fa;
    color: #667eea;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: monospace;
    display: inline-block;
    margin-top: 5px;
}

/* Banking Action Buttons */
.btn-credit {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 5px;
}

.btn-credit:hover {
    background: #218838;
}

.btn-debit {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 5px;
}

.btn-debit:hover {
    background: #c82333;
}

.btn-toggle {
    background: #6f42c1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 5px;
}

.btn-toggle:hover {
    background: #5a2d91;
}

/* Enhanced Dropdown for Banking Actions */
.dropdown-content {
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content button {
    text-align: left;
    justify-content: flex-start;
}

.dropdown-content button i {
    margin-right: 8px;
    width: 16px;
}

/* Responsive Table */
@media (max-width: 1024px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .users-table,
    .transactions-table {
        font-size: 0.8rem;
    }
    
    .users-table th,
    .users-table td,
    .transactions-table th,
    .transactions-table td {
        padding: 10px 15px;
    }
    
    .transactions-page .filter-row {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }
