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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    background: linear-gradient(135deg, #0078D7, #005a9e);
    color: white;
    padding: 30px;
    text-align: center;
}

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

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

.form-section {
    padding: 30px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0078D7;
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.1);
}

.button-section {
    padding: 20px 30px;
    background: white;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary {
    background: #0078D7;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #005a9e;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #545b62;
    transform: translateY(-2px);
}

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

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
}

.btn-export {
    background: #17a2b8;
    color: white;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-export:hover {
    background: #138496;
    transform: translateY(-1px);
}

.status-section {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.status {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.stats {
    font-size: 14px;
    font-weight: 600;
    color: #0078D7;
}

.table-section {
    padding: 30px;
    background: white;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #0078D7;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e1e5e9;
    vertical-align: top;
}

tr:hover {
    background: #f8f9fa;
}

.export-section {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.export-group {
    margin-bottom: 20px;
}

.export-group h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.export-group .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal textarea {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.modal textarea:focus {
    outline: none;
    border-color: #0078D7;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0078D7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 10px;
    }
    
    header {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .form-section {
        padding: 20px;
        grid-template-columns: 1fr;
    }
    
    .button-section {
        padding: 15px 20px;
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .table-section {
        padding: 20px;
    }
    
    th, td {
        padding: 8px;
        font-size: 14px;
    }
    
    .export-section {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

/* Success/Error Messages */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #e1e5e9;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #0078D7, #005a9e);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Email status indicators */
.email-found {
    color: #28a745;
    font-weight: 600;
}

.email-not-found {
    color: #dc3545;
    font-style: italic;
}

.website-link {
    color: #0078D7;
    text-decoration: none;
}

.website-link:hover {
    text-decoration: underline;
}/
* Extension button styling */
.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-warning:hover::before {
    left: 100%;
}

/* Extension modal styling */
.modal h2 {
    color: #1976d2;
    margin-bottom: 20px;
}

.modal ol {
    text-align: left;
    padding-left: 20px;
}

.modal ol li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d32f2f;
}

.modal .btn-primary {
    margin: 10px 5px;
    padding: 8px 16px;
}

/* Status message improvements */
.status {
    position: relative;
    overflow: hidden;
}

.status::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .button-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Loading animation for extension button */
.btn-warning.loading {
    position: relative;
    color: transparent;
}

.btn-warning.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}