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

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow: hidden;
}

.app-container {
    width: 100%;
    height: 100vh;
}

.front-page {
    width: 100%;
    height: 100%;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.time-date {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.date {
    font-size: 16px;
}

.search-container {
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-engine {
    position: relative;
    margin-right: 15px;
    cursor: pointer;
}

.search-engine img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.search-engines-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
    display: none;
    min-width: 405px;
    max-width: 90vw;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.search-engines-dropdown.show {
    display: grid;
}

.search-engine-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
    height: 40px;
}

.search-engine-option:hover {
    background-color: #f5f5f5;
}

.search-engine-option img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 8px 0;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.show {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-suggestion-item:hover {
    background-color: #f5f5f5;
}

.search-suggestion-item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
}

.search-suggestion-item .suggestion-text {
    flex: 1;
}

.search-suggestion-item .suggestion-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

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

.category-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.category-tab:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.category-tab.active {
    background: #4a90e2;
    color: white;
}

.websites-container {
    flex: 1;
    width: 100%;
    max-width: 1500px;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.website-item {
    display: flex;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 12px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.website-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.website-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.website-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.website-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 140px;
}

.website-desc {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 140px;
}

.footer {
    margin-top: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 14px;
}

@media (max-width: 1500px) {
    .websites-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .websites-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .time {
        font-size: 28px;
    }
    
    .search-box {
        padding: 8px 15px;
    }
    
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .website-icon {
        width: 50px;
        height: 50px;
    }
    
    .website-icon img {
        width: 30px;
        height: 30px;
    }
    
    .website-name {
        font-size: 12px;
        max-width: 120px;
    }
    
    .website-desc {
        font-size: 10px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .websites-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .website-name {
        max-width: 200px;
    }
    
    .website-desc {
        max-width: 200px;
    }
}
