* {
    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%);
    direction: rtl;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    padding: 30px;
}

.search-section, .date-section {
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.search-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 2;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #3498db;
    border-radius: 10px;
    font-size: 16px;
}

.search-type {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 2px solid #3498db;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.date-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.month-select, .day-select {
    padding: 12px 15px;
    border: 2px solid #3498db;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    min-width: 150px;
}

.type-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.type-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ecf0f1;
    color: #2c3e50;
    flex: 1;
    min-width: 150px;
}

.type-btn.active {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.results-container {
    min-height: 200px;
    border: 2px dashed #bdc3c7;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
}

.placeholder {
    color: #7f8c8d;
    font-size: 1.1em;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1em;
    line-height: 1.6;
}

.person-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: right;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    position: relative;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.person-name {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
}

.person-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
}

.person-type.birthday {
    background: #27ae60;
}

.person-info {
    color: #566573;
    margin-bottom: 5px;
}

.loading {
    color: #3498db;
    font-size: 1.1em;
}

.error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e74c3c;
}

.search-result-header {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .search-box, .date-selector, .type-buttons {
        flex-direction: column;
    }
    
    .search-input, .search-type, .month-select, .day-select, .type-btn {
        min-width: auto;
        width: 100%;
    }
}