/**
 * Modern Transaction Styles for Klick-Game
 * Basiert auf dem Styleguide: Schwarz-Grau-Gradienten, Orange Border
 */

/* Container */
.transaktionen-container {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 2px solid #ff6600;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation Tabs */
.transaktionen-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 0.375rem;
}

.transaktionen-nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 1px solid #595959;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.transaktionen-nav a:hover,
.transaktionen-nav a.active {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    border-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

.transaktionen-nav .divider {
    color: #AC0000;
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 2.5rem;
}

/* Grid Layout for Transactions */
.transaktionen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Single Transaction Card */
.transaktion-card {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 1px solid #444646;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.transaktion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    border-color: #ff6600;
}

/* Card Header */
.transaktion-header {
    background: linear-gradient(90deg, #8B7D7D 0%, #726B6C 100%);
    padding: 0.75rem;
    border-bottom: 1px solid #494546;
    text-align: center;
    font-weight: bold;
    color: #000;
}

.transaktion-header.unread {
    background: linear-gradient(90deg, #ff6600 0%, #ff9900 100%);
    color: #fff;
}

/* Card Body */
.transaktion-body {
    padding: 0;
}

.transaktion-row {
    padding: 0.75rem;
    border-bottom: 1px solid #635E5E;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

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

.transaktion-row:nth-child(odd) {
    background: #BAB3B4;
}

.transaktion-row:nth-child(even) {
    background: #ABA5A6;
}

.transaktion-row.unread {
    font-weight: bold;
}

.transaktion-label {
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.transaktion-value {
    color: #000;
    text-align: right;
    word-break: break-word;
}

.transaktion-value a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.transaktion-value a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* Money highlight */
.transaktion-money {
    color: #24BC06;
    font-weight: bold;
}

/* Item highlight */
.transaktion-item {
    color: #ff6600;
    font-weight: bold;
}

/* Empty State */
.transaktionen-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #BAB3B4;
    font-size: 1.125rem;
}

.transaktionen-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal Styling */
.modal-content {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 2px solid #ff6600;
    border-radius: 0.5rem;
}

.modal-header {
    background: linear-gradient(90deg, #8B7D7D 0%, #726B6C 100%);
    border-bottom: 2px solid #ff6600;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-title {
    color: #fff;
    font-weight: bold;
}

.modal-body {
    color: #fff;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #595959;
    background: rgba(42, 42, 42, 0.3);
}

.modal .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.modal .close:hover {
    color: #ff6600;
    opacity: 1;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    border: none;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9900 0%, #ffb347 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

.btn-default {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 1px solid #595959;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-default:hover {
    background: linear-gradient(135deg, #8B7D7D 0%, #726B6C 100%);
    border-color: #ff6600;
}

/* Responsive */
@media (max-width: 768px) {
    .transaktionen-grid {
        grid-template-columns: 1fr;
    }
    
    .transaktionen-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .transaktionen-nav .divider {
        display: none;
    }
    
    .transaktionen-container {
        padding: 1rem;
    }
}

/* Old table styling compatibility */
table[width="210px"] {
    width: 100% !important;
}

table[width="650px"] {
    width: 100% !important;
}

table[bgcolor="#726B6C"] {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%) !important;
}

td[bgcolor="#BAB3B4"],
td[bgcolor="#ABA5A6"] {
    background: transparent !important;
}
