:root {
    --primary-color: #2196f3;
    --secondary-color: #1976d2;
    --background-color: #f5f5f5;
    --text-color: #333;
    --success-color: #4caf50;
    --error-color: #f44336;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.search-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

select, button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

select {
    background: white;
    min-width: 120px;
}

select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--secondary-color);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.progress-bar {
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 25px;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.results-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stats {
    display: flex;
    gap: 20px;
}

.stats span {
    color: var(--text-color);
}

.results-list {
    max-height: 400px;
    overflow-y: auto;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-item:hover {
    background: #f9f9f9;
}

.domain-name {
    font-weight: bold;
    color: var(--primary-color);
}

.available {
    color: var(--success-color);
}

.taken {
    color: var(--error-color);
}

.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    align-items: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

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

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    background: var(--success-color);
}

.export-buttons button:last-child {
    background: var(--error-color);
}

.domain-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.dates {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    color: #666;
    text-align: right;
}

.registrar {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.remaining-days {
    font-weight: bold;
    color: var(--primary-color);
}

.remaining-days.expiring-soon {
    color: var(--error-color);
}

.search-type {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.search-type label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.search-type input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 5px;
}

.search-type label:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .domain-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .domain-info {
        align-items: flex-start;
    }

    .dates {
        text-align: left;
    }
}

.alert-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.alert-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.alert-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.alert-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.alert-content button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-content button:hover {
    background: var(--secondary-color);
}

.trends-panel {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.trends-panel h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.trends-content {
    display: flex;
    gap: 20px;
}

.popular-keywords, .domain-trends {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.popular-keywords h4, .domain-trends h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 0.9em;
}

#keywordsList, #trendsList {
    list-style: none;
    padding: 0;
}

#keywordsList li, #trendsList li {
    padding: 8px;
    margin-bottom: 5px;
    background: white;
    border-radius: 4px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trend-score {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.keyword-category {
    color: #666;
    font-size: 0.8em;
    font-style: italic;
}

.refresh-button {
    text-align: center;
    margin-top: 15px;
}

.refresh-button button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.page-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    background: #f5f5f5;
}

.page-number.active {
    background: var(--primary-color);
    color: white;
}

.extension-filter {
    margin-left: auto;
}

.extension-filter select {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    background: white;
    cursor: pointer;
    font-size: 14px;
} 