/* Remove border and shadow from attendance button containers */
.training-row-actions,
.training-row-actions > div,
.training-table-mobile td {
    border: none !important;
    box-shadow: none !important;
}
/* Remove border from attendance buttons */
.training-row-actions button,
button[name^="attend"] {
    border: none !important;
    box-shadow: none !important;
}
/* Desktop styly pro nové menu */
.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #222;
    position: relative;
    padding: 0;
    margin: 0;
}
.navbar-menu {
    display: flex;
    flex-direction: row;
    width: 100%;
    background: #222;
    position: static;
    align-items: center;
    padding: 0;
    margin: 0;
}
.navbar-menu-list {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 1em;
    margin: 0;
    padding: 0;
}
.navbar-item {
    padding: 15px 20px;
    border-bottom: none;
    border-right: 1px solid #333;
    color: #fff;
    text-decoration: none;
    background: none;
}
.navbar-item:last-child {
    border-right: none;
}
.navbar-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: block;
}
.navbar-item a:hover,
.navbar-item[style*="font-weight:bold;"] a {
    color: #3498db;
}
/* Globální nastavení formulářů (inspirováno loginem) */
form {
    max-width: 500px;
    margin: 30px auto;
    background: white;
    padding: 30px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    border: 1px solid #e1e1e1;
}

form h2 {
    text-align: center;
    margin-bottom: 22px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

form .form-group {
    margin-bottom: 18px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #34495e;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background: #fafbfc;
    transition: border-color 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.13);
}

form button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    background: #3498db;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

form button[type="submit"]:hover {
    background: #2980b9;
}

@media (max-width: 600px) {
    form {
        max-width: 98vw;
        padding: 18px 6vw;
    }
    form h2 {
        font-size: 20px;
    }
    form button[type="submit"] {
        font-size: 15px;
        padding: 10px;
    }
}
/* Admin Panel Styles - Tabulkový vzhled */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.admin-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-bottom: 3px solid #34495e;

}
/* Mobilní vzhled a hamburger menu */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        margin: 0;
        padding: 0;
    }
    .navbar {
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        align-items: stretch;
    }
    .hamburger, #hamburger-menu {
        display: block !important;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 201;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border: 2px solid #3498db;
        padding: 4px;
    }
    .hamburger span, #hamburger-menu span {
        display: block;
        height: 4px;
        width: 100%;
        background: #222;
        margin: 6px 0;
        border-radius: 2px;
        transition: 0.3s;
    }
    .navbar-menu {
        position: static;
        width: 100%;
        margin-top: 60px;
        background: #222;
        display: none;
        flex-direction: column;
        z-index: 100;
    }
    .navbar-menu.active {
        display: flex !important;
    }
    .navbar-menu-list {
        flex-direction: column;
        gap: 0;
    }
    .navbar-item {
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 15px;
    }
}
/* Desktop hamburger skrytý */
.hamburger, #hamburger-menu {
  display: none !important;
}
@media (max-width: 768px) {
  .hamburger, #hamburger-menu {
    display: block !important;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 201;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid #3498db;
    padding: 4px;
  }
  .hamburger span, #hamburger-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background: #222;
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.3s;
  }
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 600;
  color: #fff;
  text-decoration: none;    
}

.admin-header .user-info {
    float: right;
    font-size: 13px;
}

.admin-header .user-info a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
}

.admin-header .user-info a:hover {
    color: #3498db;
}

.admin-header h1 a {
  color: #fff;
  text-decoration: none;
}
.admin-header h1 a:hover {
  color: #3498db;
  text-decoration: none;
}

/* Navigation */
.admin-nav {
    background: #34495e;
    padding: 0;
    border-bottom: 1px solid #2c3e50;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    border-right: 1px solid #2c3e50;
}

.admin-nav li:last-child {
    border-right: none;
}

.admin-nav a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: #2c3e50;
    color: #3498db;
}

/* Content */
.admin-content {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.page-header h2 {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 600;
}

.page-header .page-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 5px;
}

/* Toolbar */
.toolbar {
    background: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.toolbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

.btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.btn-primary {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    border-color: #229954;
}

.btn-danger {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.btn-warning {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.data-table th:last-child {
    border-right: none;
}

.data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    vertical-align: middle;
}

.data-table td:last-child {
    border-right: none;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table .actions {
    white-space: nowrap;
    text-align: center;
    width: 120px;
}

.data-table .actions .btn {
    margin: 0 2px;
}

/* Forms */
.form-container {
    background: white;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* Messages */
.message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #7f8c8d;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background: white;
}

.pagination a:hover {
    background: #f8f9fa;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Status badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.active {
    background: #d4edda;
    color: #155724;
}

.badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge.pending {
    background: #fff3cd;
    color: #856404;
}

.badge.confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-nav ul {
        flex-direction: column;
    }
    
    .admin-nav li {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
  .navbar-menu-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #222;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .navbar-item {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    color: #fff;
    background: #222;
    font-size: 18px;
    text-align: left;
  }
  .navbar-item:last-child {
    border-bottom: none;
  }
  .navbar-item a {
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
  }
  .navbar-item a:hover {
    color: #3498db;
    background: #333;
  }
  }

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}