/* Sterling Custody Bank - Dashboard Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    padding-top: 90px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.dashboard-main.expanded {
    margin-left: 0;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #d4af37 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.3s;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.balance-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.balance-card.available .balance-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.balance-card.pending .balance-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.balance-card.total .balance-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.balance-info h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-info h3,
.stat-info h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-number,
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Quick Actions */
.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-section h2 {
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #d4af37 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.action-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: 0.85rem;
    color: #666;
}

.action-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Card Display Section */
.card-display-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-display-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

.card-3d-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
    perspective: 1000px;
}

.credit-card-3d {
    width: 400px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.credit-card-3d.flipped {
    transform: rotateY(180deg);
}

.card-inner-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-front-3d,
.card-back-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front-3d {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
}

.card-back-3d {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
}

.card-bank-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 8px;
    margin: 1rem 0;
}

.card-number {
    font-size: 1.4rem;
    color: white;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.card-name,
.card-expiry-date {
    color: white;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    align-self: flex-end;
}

.card-magnetic-strip {
    width: calc(100% + 3rem);
    height: 50px;
    background: #000;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
}

.card-signature-panel {
    background: white;
    height: 45px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-radius: 5px;
}

.card-signature {
    font-family: cursive;
    color: #333;
    font-size: 0.9rem;
}

.card-cvv-box {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
    font-family: monospace;
    color: #333;
    font-weight: bold;
}

.card-back-info {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

/* Recent Transactions */
.recent-transactions {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #1e3a5f;
}

.view-all {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.amount {
    font-weight: 600;
    color: #dc3545;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
}

.empty-state i {
    font-size: 4rem;
    color: #d4d4d8;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Forms */
.form-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: #1e3a5f;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary {
    background: #ddd6fe;
    color: #5b21b6;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* Filters */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #d4af37;
    color: #d4af37;
}

.page-btn.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
        padding-top: 80px;
    }
    
    .balance-cards,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .credit-card-3d {
        width: 100%;
        max-width: 350px;
        height: 220px;
    }
}
/* Sterling Custody Bank - Dashboard Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    padding-top: 90px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.dashboard-main.expanded {
    margin-left: 0;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #d4af37 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.3s;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.balance-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.balance-card.available .balance-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.balance-card.pending .balance-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.balance-card.total .balance-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.balance-info h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-info h3,
.stat-info h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.stat-number,
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* Quick Actions */
.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-section h2 {
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #d4af37 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.action-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: 0.85rem;
    color: #666;
}

.action-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Card Display Section */
.card-display-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-display-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

.card-3d-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
    perspective: 1000px;
}

.credit-card-3d {
    width: 400px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.credit-card-3d.flipped {
    transform: rotateY(180deg);
}

.card-inner-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-front-3d,
.card-back-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-front-3d {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
}

.card-back-3d {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%);
    color: white;
}

.card-bank-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 8px;
    margin: 1rem 0;
}

.card-number {
    font-size: 1.4rem;
    color: white;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.card-name,
.card-expiry-date {
    color: white;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    align-self: flex-end;
}

.card-magnetic-strip {
    width: calc(100% + 3rem);
    height: 50px;
    background: #000;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
}

.card-signature-panel {
    background: white;
    height: 45px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-radius: 5px;
}

.card-signature {
    font-family: cursive;
    color: #333;
    font-size: 0.9rem;
}

.card-cvv-box {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
    font-family: monospace;
    color: #333;
    font-weight: bold;
}

.card-back-info {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

/* Recent Transactions */
.recent-transactions {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #1e3a5f;
}

.view-all {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.amount {
    font-weight: 600;
    color: #dc3545;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 10px;
}

.empty-state i {
    font-size: 4rem;
    color: #d4d4d8;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 2rem;
}

/* Forms */
.form-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: #1e3a5f;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary {
    background: #ddd6fe;
    color: #5b21b6;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* Filters */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #d4af37;
    color: #d4af37;
}

.page-btn.active {
    background: #d4af37;
    color: white;
    border-color: #d4af37;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 1rem;
        padding-top: 80px;
    }
    
    .balance-cards,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .credit-card-3d {
        width: 100%;
        max-width: 350px;
        height: 220px;
    }
}
/* TARJETA 3D - COMPLETAMENTE ARREGLADA */
.card-display-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card-display-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a5f;
}

.card-3d-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
    perspective: 1000px;
}

.credit-card-3d {
    width: 400px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    cursor: pointer;
}

.credit-card-3d.flipped {
    transform: rotateY(180deg);
}

.card-inner-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-front-3d,
.card-back-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card-front-3d {
    color: white;
}

.card-back-3d {
    transform: rotateY(180deg);
    color: white;
}

/* Elementos de la tarjeta - AJUSTADOS */
.card-bank-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-contactless {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 30px;
    height: 30px;
}

.contactless-icon {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 6px;
    margin: 1rem 0 0.5rem 0;
}

.card-number {
    font-size: 1.3rem;
    color: white;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0.5rem 0;
    font-family: 'Courier New', monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.card-holder,
.card-expiry {
    flex: 1;
}

.card-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    display: block;
}

.card-name {
    color: white;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-expiry-date {
    color: white;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Parte trasera de la tarjeta */
.card-magnetic-strip {
    width: calc(100% + 3rem);
    height: 50px;
    background: #000;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.card-signature-panel {
    background: white;
    height: 40px;
    margin: 0.5rem 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-radius: 5px;
}

.card-signature {
    font-family: cursive;
    color: #333;
    font-size: 0.85rem;
}

.card-cvv-box {
    background: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border: 1px solid #ddd;
    font-family: monospace;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
}

.card-back-info {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.card-back-logo {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Responsive para la tarjeta */
@media (max-width: 768px) {
    .credit-card-3d {
        width: 100%;
        max-width: 350px;
        height: 220px;
    }
    
    .card-number {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .card-name,
    .card-expiry-date {
        font-size: 0.85rem;
    }
}
/* ========================================
   ADMIN DASHBOARD FIXES
   ======================================== */

/* Admin Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.stat-card.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-card:not(.primary):not(.success):not(.warning):not(.danger):not(.info) .stat-icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #d4af37 100%);
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-card.primary .stat-info h4,
.stat-card.success .stat-info h4,
.stat-card.warning .stat-info h4,
.stat-card.danger .stat-info h4,
.stat-card.info .stat-info h4 {
    color: rgba(255,255,255,0.9);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stat-change {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Admin Tables */
.data-table-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-header h2 {
    margin: 0;
    color: #1e3a5f;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1e3a5f;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* Admin Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-card h3 {
    margin: 0 0 1rem 0;
    color: #1e3a5f;
}

/* Admin Actions */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary {
    background: #3b82f6;
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.badge-info {
    background: #06b6d4;
    color: white;
}

.badge-secondary {
    background: #6b7280;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state i {
    font-size: 4rem;
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
}

/* Page Header */
.page-header {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-header p {
    margin: 0;
    color: #666;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    color: #1e3a5f;
}

.view-all {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.view-all:hover {
    gap: 0.75rem;
}

/* Filters */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Responsive Admin */
@media screen and (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
    }
    
    .table-actions .btn {
        flex: 1;
    }
    
    .data-table-container {
        padding: 1rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .page-actions .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Stats Grid Specific */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Fix for overlapping elements */
.dashboard-main > * {
    position: relative;
    z-index: 1;
}

/* Ensure proper spacing */
.dashboard-main > *:not(:last-child) {
    margin-bottom: 1.5rem;
}