/* Transactions Page Specific Styles */

body {
    padding: 20px;
    background: #0f172a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid #334155;
}

.header {
    background: #1e293b;
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid #334155;
    flex-wrap: wrap;
    gap: 20px;
}

.header > div:first-child {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header h1 {
    font-size: 32px;
    color: #f1f5f9;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.clear-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.header a {
    background: transparent;
    color: #60a5fa;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #3b82f6;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.header a:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #0f172a;
}

.stat-card {
    background: #1e293b;
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    border: 1px solid #334155;
}

.stat-card h3 {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #f1f5f9;
}

.stat-card.success .value {
    color: #10b981;
}

.stat-card.failed .value {
    color: #ef4444;
}

.controls {
    padding: 20px 30px;
    background: #0f172a;
    border-top: 1px solid #334155;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.controls button {
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    transition: all 0.2s;
}

.controls button:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.table-container {
    padding: 30px;
    overflow-x: auto;
    background: #1e293b;
}

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

th {
    background: #0f172a;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

td {
    padding: 16px;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

tr:hover {
    background: #0f172a;
}

.status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.status.success {
    background: #0f172a;
    color: #10b981;
    border-color: #10b981;
}

.status.failed {
    background: #0f172a;
    color: #ef4444;
    border-color: #ef4444;
}

.status.refund {
    background: #0f172a;
    color: #f59e0b;
    border-color: #f59e0b;
}

.btn-refund, .btn-view {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-refund:hover, .btn-view:hover {
    background: #2563eb;
}

.btn-refund:disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.5;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #94a3b8;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #cbd5e1;
    font-weight: 700;
}

.amount {
    font-weight: 600;
    color: #f1f5f9;
}

.timestamp {
    font-size: 13px;
    color: #64748b;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1e293b;
    padding: 30px;
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid #334155;
}

.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
    padding-bottom: 15px;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    color: #f1f5f9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.modal-body input {
    width: 100%;
    padding: 12px;
    border: 1px solid #475569;
    border-radius: 0;
    font-size: 14px;
    box-sizing: border-box;
    background: #0f172a;
    color: #e2e8f0;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-cancel {
    background: #475569;
    color: white;
}

.btn-cancel:hover {
    background: #334155;
}

.btn-confirm {
    background: #ef4444;
    color: white;
}

.btn-confirm:hover {
    background: #dc2626;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: auto;
}

.close-modal:hover {
    color: #f1f5f9;
}
