* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #faf8f3;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 110, 75, 0.15);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #d4c4a8 0%, #c4b393 100%);
    color: #5d4e37;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(93, 78, 55, 0.2);
}

.search-section {
    padding: 30px;
    background: #f7f3eb;
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0e6d2 0%, #e8dcc0 100%);
    border-radius: 15px;
    border: 2px solid #d4c4a8;
    box-shadow: 0 3px 10px rgba(139, 110, 75, 0.1);
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid #d4c4a8;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #faf8f3;
    color: #5d4e37;
}

.search-input:focus {
    border-color: #b8a082;
    box-shadow: 0 0 0 3px rgba(184, 160, 130, 0.1);
    background: #ffffff;
}

.month-input, .day-input {
    width: 80px;
    padding: 15px 20px;
    border: 2px solid #d4c4a8;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: #faf8f3;
    color: #5d4e37;
    text-align: center;
}

.month-input:focus, .day-input:focus {
    border-color: #b8a082;
    box-shadow: 0 0 0 3px rgba(184, 160, 130, 0.1);
    background: #ffffff;
}

.search-box label {
    font-weight: 600;
    color: #5d4e37;
    margin-right: 5px;
    white-space: nowrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #5d4e37;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #b8a082;
    cursor: pointer;
}

.today-button {
    padding: 15px 20px;
    background: linear-gradient(135deg, #8b7a5f 0%, #7d6b4f 100%);
    color: #faf8f3;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.today-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 122, 95, 0.3);
}

.search-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #b8a082 0%, #a8927a 100%);
    color: #faf8f3;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 160, 130, 0.3);
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.total-count {
    background: #e8dcc0;
    color: #7d6b4f;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.result-count {
    background: #d4c4a8;
    color: #5d4e37;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.results-section {
    padding: 0 30px 30px;
}

.character-table {
    width: 100%;
    border-collapse: collapse;
    background: #faf8f3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 110, 75, 0.1);
}

.character-table thead {
    background: linear-gradient(135deg, #d4c4a8 0%, #c4b393 100%);
}

.character-table th {
    padding: 15px;
    text-align: left;
    color: #5d4e37;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 2px solid #b8a082;
}

.character-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e8dcc0;
    color: #5d4e37;
    font-size: 1rem;
}

.character-table tr:hover {
    background: #f0e6d2;
    transition: background 0.3s ease;
}

.no-cell {
    width: 120px;
    background: #f7f3eb;
    font-weight: 600;
    color: #8b7a5f;
    border-right: 2px solid #d4c4a8;
}

.name-cell {
    flex: 1;
}

.highlight {
    background: #ffeb3b;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7d6b4f;
    font-size: 1.2rem;
    background: #f7f3eb;
    border-radius: 15px;
    border: 2px dashed #d4c4a8;
}

.birthday-results h3, .name-results h3 {
    color: #5d4e37;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    background: linear-gradient(135deg, #d4c4a8 0%, #c4b393 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(139, 110, 75, 0.1);
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .month-input, .day-input {
        width: 100%;
    }
    
    .checkbox-label {
        justify-content: center;
    }
    
    .stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-section {
        padding: 0 20px 20px;
    }
    
    .character-table th,
    .character-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .no-cell {
        width: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .search-box {
        padding: 15px;
    }
    
    .month-input, .day-input {
        padding: 10px;
    }
    
    .search-button, .today-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .search-input {
        padding: 12px 15px;
    }
    
    .character-table th,
    .character-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .no-cell {
        width: 80px;
    }
}
