/* Oprava pro roztažení pozadí při delším obsahu */
body { margin: 0; font-family: Arial, sans-serif; background-color: #f5f5f5; }
.app-frame { width: 1280px; height: 800px; margin: 40px auto; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; flex-direction: column; background-color: #fff; }

/* A. HORNÍ LIŠTA */
.header { height: 60px; background-color: #2D3436; color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-size: 16px; }
.header-status { font-size: 14px; }
/* B. LEVÉ MENU */ /* Zvětšena šířka menu */
.main-content { display: flex; flex-grow: 1; }
.sidebar { width: 240px; background-color: #DFE6E9; padding-top: 10px; flex-shrink: 0; }
.menu-item { padding: 15px 20px; font-size: 16px; cursor: pointer; border-left: 5px solid transparent; transition: background-color 0.2s, border-left-color 0.2s; font-weight: bold; }
.menu-item:hover { background-color: #ccc; }
.menu-item.active { background-color: #0984e3; color: white; border-left-color: #0077b6; }
/* C. PRACOVNÍ PLOCHA */
.content-area { flex-grow: 1; padding: 20px; overflow-y: auto; min-width: 0; }
/* D. PRAVÝ PANEL */
.right-panel { width: 320px; background-color: #F1F2F6; border-left: 1px solid #b2bec3; display: flex; flex-direction: column; flex-shrink: 0; }
.panel-title { padding: 15px; font-size: 18px; font-weight: bold; text-align: center; border-bottom: 1px solid #b2bec3; }
.panel-content { padding: 15px; flex-grow: 1; }
.btn-payment { width: 90%; padding: 15px; margin: 10px auto; border: none; border-radius: 5px; font-size: 18px; color: white; cursor: pointer; }
.btn-cash { background-color: #00b894; }
.btn-card { background-color: #0984e3; }

/* Styly pro dlaždice (PRODEJ) */
.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.tile { background-color: #fff; border: 2px solid #0984e3; border-radius: 5px; padding: 20px; text-align: center; cursor: pointer; }
.tile-price { font-size: 24px; font-weight: bold; color: #d63031; margin-top: 10px; }

/* Styly pro košík */
.cart-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #b2bec3; }
.cart-total { font-size: 26px; font-weight: bold; color: #d63031; margin-top: 30px; text-align: right; }

/* Styly pro detail karty */
.card-detail-header { background-color: #e9ecef; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.card-detail-header h3 { margin: 0 0 10px 0; }
.card-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; font-size: 14px; }
.card-info-grid span { font-weight: bold; }
.status-active { color: #28a745; }
.status-blocked { color: #dc3545; }
.quick-actions { margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.quick-actions button { background-color: #6c757d; color: white; border: none; padding: 8px 12px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.quick-actions button:hover { background-color: #5a6268; }
.tab-nav { border-bottom: 2px solid #dee2e6; display: flex; margin-bottom: 20px; }
.tab-nav-item { padding: 10px 15px; cursor: pointer; border: 2px solid transparent; border-bottom: none; margin-bottom: -2px; }
.tab-nav-item.active { border-color: #dee2e6 #dee2e6 #fff; border-radius: 5px 5px 0 0; background-color: #fff; font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.section-title { font-size: 18px; font-weight: bold; margin-top: 20px; margin-bottom: 10px; border-bottom: 1px solid #ccc; padding-bottom: 5px;}
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { border: 1px solid #dee2e6; padding: 8px; text-align: left; }
.data-table th { background-color: #f2f2f2; }
.data-table tr:nth-child(even) { background-color: #f8f9fa; }
.form-inline { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.form-inline input { width: auto; flex-grow: 1; }
.form-inline button { width: auto; }
.personal-data-grid { display: grid; grid-template-columns: 150px 1fr; gap: 8px; font-size: 14px; }
.personal-data-grid dt { font-weight: bold; }

/* Styly pro prodej jednotlivé jízdenky */
.single-ticket-form { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border: 1px solid #ccc; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.form-row label { font-weight: bold; width: 100px; text-align: right; }
.form-row .input-group { display: flex; align-items: center; gap: 5px; }
.form-row .input-group label { width: auto; font-weight: normal; }
.form-row input, .form-row select { padding: 8px; border-radius: 4px; border: 1px solid #ccc; }
.action-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #004080; margin-top: 20px; border-radius: 5px; }
.action-bar button { border: none; border-radius: 5px; padding: 10px 20px; font-size: 16px; font-weight: bold; cursor: pointer; }
.btn-back { background-color: #6c757d; color: white; }
.btn-add-to-cart { background-color: #007bff; color: white; }
.btn-purchase { background-color: #28a745; color: white; font-size: 18px !important; }

/* Styly pro další volby v menu */
.sidebar-divider { margin: 20px; border-top: 1px dashed #b2bec3; }
.sidebar-subtitle { padding: 0 20px; font-size: 12px; color: #636e72; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; }
.disabled-tab { color: #aaa; cursor: not-allowed; }
.tooltip-q { cursor: help; font-size: 12px; color: #6c757d; border: 1px solid #ccc; border-radius: 50%; padding: 0 4px; display: inline-block; line-height: 1.2; }

/* Styly pro modální okno platby hotovostí */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
}

.cash-modal {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.close-button {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-button:hover {
    color: #555;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-input-group {
    margin-bottom: 15px;
}

.modal-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.modal-input-group input[type="text"],
.modal-input-group input[type="number"] {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.modal-input-group input[readonly] {
    background-color: #f0f0f0;
    color: #777;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.btn-confirm {
    background-color: #28a745; /* Green for confirm */
}

.btn-confirm:hover {
    background-color: #218838;
}

.btn-cancel {
    background-color: #6c757d; /* Grey for cancel */
}

.btn-cancel:hover {
    background-color: #5a6268;
}