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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ECF0F1;
    color: #2C3E50;
    line-height: 1.6;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 48px;
    color: #3498DB;
    margin-bottom: 10px;
}

.auth-logo h1 {
    font-size: 24px;
    color: #2C3E50;
    font-weight: 600;
}

.auth-box h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2C3E50;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2C3E50;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498DB;
}

.form-control:disabled {
    background-color: #F5F5F5;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

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

.btn-primary {
    background-color: #3498DB;
    color: white;
}

.btn-primary:hover {
    background-color: #2980B9;
}

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

.btn-secondary:hover {
    background-color: #7F8C8D;
}

.btn-success {
    background-color: #27AE60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

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

.btn-danger:hover {
    background-color: #C0392B;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-info {
    background-color: #3498DB;
    color: white;
    border: none;
}

.btn-info:hover {
    background-color: #2980B9;
}

.btn-warning {
    background-color: #F39C12;
    color: white;
    border: none;
}

.btn-warning:hover {
    background-color: #E67E22;
}

.proxy-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

#selectAll {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #FADBD8;
    color: #C0392B;
    border-left: 4px solid #E74C3C;
}

.alert-success {
    background-color: #D5F4E6;
    color: #229954;
    border-left: 4px solid #27AE60;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #E0E0E0;
}

.auth-footer a {
    color: #3498DB;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: #2C3E50;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header i {
    font-size: 28px;
    color: #3498DB;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
}

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

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

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background-color: #3498DB;
    color: white;
    border-left: 4px solid #2980B9;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.user-info i {
    font-size: 24px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #2C3E50;
}

.content-header > div {
    display: flex;
    gap: 10px;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

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

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

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #E0E0E0;
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

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

.data-table thead {
    background-color: #F8F9FA;
}

.data-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2C3E50;
    font-size: 14px;
}

.data-table td {
    padding: 12px 15px;
    border-top: 1px solid #E0E0E0;
    font-size: 14px;
}

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

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background-color: #FFF4E6;
    color: #F39C12;
}

.badge-running {
    background-color: #E3F2FD;
    color: #3498DB;
}

.badge-completed {
    background-color: #E8F8F0;
    color: #27AE60;
}

.badge-secondary {
    background-color: #E0E0E0;
    color: #7F8C8D;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498DB 0%, #27AE60 100%);
    transition: width 0.5s ease;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 4px 4px 0;
    border-radius: 50%;
    background-color: #EEF5FF;
    color: #1A237E;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
    background-color: #DCE9FF;
    color: #0D47A1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    animation: slideDown 0.3s;
}

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

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    font-size: 28px;
    font-weight: 300;
    color: #7F8C8D;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.modal-close:hover {
    color: #2C3E50;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #F8F9FA;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2C3E50;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #E0E0E0;
}

.tab-btn.active {
    background-color: #3498DB;
    color: white;
    border-color: #3498DB;
}

.tab-content {
    display: none;
}

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

.project-item {
    padding: 25px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: white;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.project-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-weight: 600;
    font-size: 13px;
    color: #7F8C8D;
}

.project-results {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #E0E0E0;
}

.project-results h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.results-pagination {
    display: none;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid #DDE4EC;
    background: #FFFFFF;
    color: #2C3E50;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: #F3F7FB;
    border-color: #C7D3E1;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    color: #9AA5B1;
    background: #F7F9FC;
    border-color: #E3E8EF;
}

.pagination-btn.active {
    background: #3498DB;
    color: #FFFFFF;
    border-color: #2980B9;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.25);
}

.pagination-ellipsis {
    color: #7F8C8D;
    font-weight: 600;
    padding: 0 4px;
}

.table-responsive {
    overflow-x: auto;
}

.results-table {
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7F8C8D;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #BDC3C7;
}

.empty-state p {
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.info-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    min-width: 150px;
    color: #7F8C8D;
}

.mt-3 {
    margin-top: 30px;
}

.text-center {
    text-align: center;
}

.custom-modal {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.custom-modal.show {
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-modal.show .custom-modal-content {
    transform: scale(1);
    opacity: 1;
}

.custom-modal-header {
    padding: 20px 25px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.custom-modal-header.info {
    background-color: #3498DB;
}

.custom-modal-header.success {
    background-color: #27AE60;
}

.custom-modal-header.error {
    background-color: #E74C3C;
}

.custom-modal-header.warning {
    background-color: #F39C12;
}

.custom-modal-header i {
    font-size: 28px;
}

.custom-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.custom-modal-body {
    padding: 30px 25px;
}

.custom-modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2C3E50;
}

.custom-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h3,
    .nav-item span,
    .user-info span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-actions {
        width: 100%;
    }
    
    .custom-modal-content {
        width: 95%;
        margin: 20% auto;
    }
}
