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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.docker-badge {
    font-size: 14px;
    background-color: #0db7ed;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: normal;
}

p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Text Input and Results */
.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.status {
    margin-top: 15px;
    font-style: italic;
    color: #7f8c8d;
}

.results-container {
    margin-top: 20px;
}

.results-section {
    margin-bottom: 25px;
}

h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.count {
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
    color: #7f8c8d;
}

.url-list {
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.url-item {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
}

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

.url-item.valid {
    background-color: #e8f5e9;
}

.url-item.invalid {
    background-color: #ffebee;
}

.url-status {
    margin-right: 10px;
    font-size: 18px;
}

.url-info {
    flex-grow: 1;
}

.url-link {
    font-weight: 500;
    word-break: break-all;
}

.url-message {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 3px;
}

.empty-list {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* Excel Upload */
.excel-upload {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="file"] {
    display: none;
}

.file-input-label {
    padding: 8px 16px;
    background-color: #ecf0f1;
    color: #2c3e50;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.file-input-label:hover {
    background-color: #d5dbdb;
}

#selectedFileName {
    margin-left: 10px;
    color: #7f8c8d;
    font-style: italic;
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Excel Results */
.excel-results {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.excel-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    padding: 15px;
    border-radius: 6px;
    background-color: #ecf0f1;
    text-align: center;
}

.stat-box.valid {
    background-color: #e8f5e9;
}

.stat-box.invalid {
    background-color: #ffebee;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.download-section {
    margin-top: 20px;
    text-align: center;
}

.download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #219653;
}

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}