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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
}

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

h1, h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

input, select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.result-container, .history-container {
    margin-top: 20px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.error {
    color: red;
    padding: 10px;
    text-align: center;
}

.advanced-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.date-filters {
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
}

.cookie-management {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cookie-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.cookie-input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.cookie-input {
    width: 100%;
    padding: 8px;
    padding-right: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.help-button {
    position: absolute;
    right: 5px;
    padding: 2px 8px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.help-button:hover {
    background: #5a6268;
}

.cookie-format-hint {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
    font-family: monospace;
}

.cookies-status {
    font-size: 0.9em;
    color: #666;
    padding: 5px 0;
}

.cookie-management input {
    flex-grow: 1;
}

.cookie-management button {
    white-space: nowrap;
}

.download-btn {
    background-color: #28a745;
}

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

.history-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#resultCount {
    font-weight: bold;
    color: #666;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .advanced-filters {
        grid-template-columns: 1fr;
    }
    
    .date-filters {
        flex-direction: column;
    }
}

/* Bulk Upload Styles */
.bulk-upload {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.upload-section {
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

.file-input + label {
    padding: 10px 15px;
    background: #6c757d;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}

.file-input + label:hover {
    background: #5a6268;
}

.bulk-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-check-btn {
    background: #007bff;
}

.bulk-stop-btn {
    background: #dc3545;
}

.bulk-stop-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.progress-info {
    flex-grow: 1;
    margin-left: 15px;
}

.progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar #progressFill {
    height: 100%;
    background: #28a745;
    width: 0%;
    transition: width 0.3s ease;
}

/* Error handling styles */
.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.retry-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

.cookies-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.view-cookies-btn {
    padding: 5px 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.view-cookies-btn:hover {
    background: #5a6268;
}

.cookies-status {
    margin-top: 10px;
    padding: 5px;
    border-top: 1px solid #dee2e6;
} 