/* style.css - Hlavní styly */

:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --secondary-color: #50C878;
    --danger-color: #E74C3C;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 40px;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Navigace */
nav {
    background: white;
    border-bottom: 2px solid var(--bg-light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--bg-light);
}

nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Content */
.content {
    padding: 40px;
}

/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: #45B36A;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.9rem;
}

/* Formuláře */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Tabulky */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--bg-light);
}

.table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.table td {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* Karty */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.card-body {
    color: var(--text-light);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--secondary-color);
    color: white;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
}

.alert-error {
    background: #F8D7DA;
    border: 1px solid #F5C6CB;
    color: #721C24;
}

.alert-info {
    background: #D1ECF1;
    border: 1px solid #BEE5EB;
    color: #0C5460;
}

/* Účastníci */
.participants-list {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.participant-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-name {
    font-weight: 600;
    color: var(--text-dark);
}

.participant-dates {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Login form */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Akce info */
.event-info {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.event-info h1 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.event-detail {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.event-detail strong {
    min-width: 150px;
    color: var(--text-dark);
}

.event-description {
    margin-top: 20px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header, .content, nav {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th, .table td {
        padding: 10px;
    }
    
    nav {
        flex-direction: column;
        gap: 10px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-muted {
    color: var(--text-light);
}
