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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.login-header h1 {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-success {
    background: #48bb78;
    color: white;
}

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

.btn-info {
    background: #4299e1;
    color: white;
}

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

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 2px;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #2d3748;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #4a5568;
}

.sidebar-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #4a5568;
    color: white;
}

.nav-item.active {
    background: #4a5568;
    color: white;
    border-left: 3px solid #667eea;
}

.nav-item .icon {
    margin-right: 10px;
    font-size: 18px;
}

.nav-divider {
    margin: 10px 0;
    border-color: #4a5568;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
}

.top-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-info {
    font-weight: 500;
    color: #4a5568;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 48px;
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-info p {
    color: #718096;
    font-size: 14px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-valid {
    background: #c6f6d5;
    color: #22543d;
}

.status-invalid {
    background: #fed7d7;
    color: #742a2a;
}

.status-disposable {
    background: #feebc8;
    color: #7c2d12;
}

.status-spamtrap {
    background: #fed7d7;
    color: #742a2a;
}

.status-queued {
    background: #e2e8f0;
    color: #2d3748;
}

.status-running {
    background: #bee3f8;
    color: #2c5282;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: #48bb78;
    transition: width 0.3s;
}

.progress-text {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 11px;
    line-height: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
}

textarea.form-control {
    resize: vertical;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #718096;
}

/* Action Bar */
.action-bar {
    margin-bottom: 20px;
}

.action-bar .btn {
    margin-right: 10px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form .form-control {
    width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #4a5568;
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Stats Summary */
.stats-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.stat-badge {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.stat-badge.valid {
    background: #c6f6d5;
    color: #22543d;
}

.stat-badge.invalid {
    background: #fed7d7;
    color: #742a2a;
}

.stat-badge.disposable {
    background: #feebc8;
    color: #7c2d12;
}

.stat-badge.spamtrap {
    background: #fed7d7;
    color: #742a2a;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .sidebar-header p,
    .nav-item span:last-child {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-control {
        width: 100%;
    }
}

/* Hide sidebar scrollbar but keep functionality */
.sidebar {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* For WebKit browsers (Chrome, Safari) - alternate method */
.sidebar::-webkit-scrollbar {
    width: 0;
    background: transparent;
}