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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Nawigacja */
#main-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: #667eea;
    color: white;
}

#user-display {
    color: #667eea;
    font-weight: 500;
}

/* Główna zawartość */
#app {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
}

/* Karty */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.card h2 {
    color: #667eea;
    margin-bottom: 20px;
    text-align: center;
}

.card h3 {
    color: #764ba2;
    margin-bottom: 15px;
}

/* Formularze */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    width: auto;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

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

.alert-error {
    background: #ffe0e0;
    color: #c0392b;
    border: 1px solid #ffb8b8;
}

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Gra */
.hearts {
    font-size: 2em;
    text-align: center;
    margin: 15px 0;
}

.heart-full {
    color: #e74c3c;
}

.heart-empty {
    color: #ddd;
}

.timer {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.timer-warning {
    color: #e74c3c;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.task-description {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.clue-box {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 1.1em;
}

/* Tabela */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

table th {
    background: #667eea;
    color: white;
}

table tr:hover {
    background: #f5f5f5;
}

/* Stopka */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    opacity: 0.8;
}

/* Linki */
.link {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
}

.link:hover {
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    #app {
        margin: 15px;
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }
}