/* TKD Frontend Styles */
.tkd-form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tkd-form-container h2 {
    margin-bottom: 25px;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

.tkd-form-group {
    margin-bottom: 20px;
}

.tkd-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.tkd-form-group input[type="text"],
.tkd-form-group input[type="email"],
.tkd-form-group input[type="tel"],
.tkd-form-group input[type="date"],
.tkd-form-group select,
.tkd-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tkd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tkd-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.tkd-submit-btn:hover {
    background: #005a87;
}

#tkd-form-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

#tkd-form-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

#tkd-form-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Competitions List */
.tkd-competitions-list {
    max-width: 1200px;
    margin: 30px auto;
}

.tkd-competition-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.tkd-competition-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tkd-comp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.tkd-comp-header h3 {
    margin: 0;
    color: #333;
}

.tkd-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tkd-badge-open {
    background: #d4edda;
    color: #155724;
}

.tkd-badge-full {
    background: #f8d7da;
    color: #721c24;
}

.tkd-badge-closed {
    background: #d6d8d9;
    color: #383d41;
}

.tkd-comp-details p {
    margin: 8px 0;
    color: #555;
}

.tkd-register-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.tkd-register-btn:hover {
    background: #005a87;
}

@media (max-width: 768px) {
    .tkd-form-row {
        grid-template-columns: 1fr;
    }
    
    .tkd-form-container {
        padding: 20px;
    }
}

/* Frontend Dashboard Styles */
.tkd-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.tkd-login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.tkd-login-box h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

#tkd-login-messages {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

#tkd-login-messages.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

#tkd-login-messages.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.tkd-login-links {
    text-align: center;
    margin-top: 15px;
}

.tkd-login-links a {
    color: #0073aa;
    text-decoration: none;
}

/* Dashboard */
.tkd-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.tkd-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tkd-dashboard-header h1 {
    margin: 0 0 5px 0;
    color: #333;
}

.tkd-dashboard-header p {
    margin: 0;
    color: #666;
}

.tkd-logout-btn {
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.tkd-logout-btn:hover {
    background: #c82333;
}

.tkd-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tkd-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tkd-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tkd-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tkd-stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tkd-stat-label {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.tkd-stat-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: background 0.3s;
}

.tkd-stat-link:hover {
    background: rgba(255,255,255,0.3);
}

.tkd-dashboard-section {
    margin-bottom: 40px;
}

.tkd-dashboard-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.tkd-competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tkd-mini-comp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tkd-mini-comp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tkd-mini-comp-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.tkd-mini-comp-card p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.tkd-btn-sm {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.tkd-btn-sm:hover {
    background: #005a87;
}

.tkd-dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tkd-action-btn {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background: #fff;
    border: 2px solid #0073aa;
    color: #0073aa;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.tkd-action-btn:hover {
    background: #0073aa;
    color: #fff;
}

/* Page Header */
.tkd-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tkd-page-header h1 {
    margin: 0;
    color: #333;
}

.tkd-btn-primary {
    padding: 12px 25px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.tkd-btn-primary:hover {
    background: #005a87;
}

/* Athletes Table */
.tkd-athletes-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tkd-athletes-table table {
    width: 100%;
    border-collapse: collapse;
}

.tkd-athletes-table thead {
    background: #f8f9fa;
}

.tkd-athletes-table th,
.tkd-athletes-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tkd-athletes-table th {
    font-weight: 600;
    color: #333;
}

.tkd-athletes-table tbody tr:hover {
    background: #f8f9fa;
}

.tkd-delete-athlete {
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.tkd-delete-athlete:hover {
    background: #c82333;
}

.tkd-cancel-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 12px 25px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.tkd-cancel-btn:hover {
    background: #5a6268;
}

/* Entries List */
.tkd-entries-list {
    display: grid;
    gap: 20px;
}

.tkd-entry-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tkd-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.tkd-entry-header h3 {
    margin: 0;
    color: #333;
}

.tkd-entry-status {
    padding: 5px 15px;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tkd-entry-details p {
    margin: 8px 0;
    color: #666;
}

.tkd-entry-details strong {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .tkd-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tkd-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .tkd-competitions-grid {
        grid-template-columns: 1fr;
    }
    
    .tkd-dashboard-actions {
        flex-direction: column;
    }
    
    .tkd-action-btn {
        min-width: 100%;
    }
    
    .tkd-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tkd-athletes-table {
        overflow-x: auto;
    }
}
.tkd-edit-athlete {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
}

.tkd-edit-athlete:hover {
    background: #005a87;
}

.tkd-delete-athlete {
    background: #dc3545;
}

.tkd-delete-athlete:hover {
    background: #c82333;
}
/* Istaknuti gumb za registraciju kluba */
.tkd-register-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: #2b6cb0; /* plava kao na sustavu */
    color: white !important;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: 0.2s ease;
    font-size: 14px;
}

.tkd-register-btn:hover {
    background: #1e4f84;
    transform: translateY(-1px);
}
/* Cijeli login container ulijevo */
.tkd-login-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    padding-left: 2px;
}

.tkd-login-box {
    max-width: 600px;
    width: 100%;
    margin: 0;
}

