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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
}

.login-box, .dashboard {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

h1 {
    color: #333;
    font-size: 28px;
}

h2 {
    color: #555;
    margin: 30px 0 15px;
    font-size: 20px;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    margin-bottom: 15px;
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.message.success { background: #d4edda; color: #155724; }
.message.error { background: #f8d7da; color: #721c24; }
.message.info { background: #d1ecf1; color: #0c5460; }

.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    border-radius: 10px;
    margin-bottom: 30px;
}

.stat {
    font-size: 16px;
    color: #555;
}

.stat strong {
    color: #667eea;
    font-size: 28px;
    margin-left: 10px;
}

.task-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.task-status.success { background: #d4edda; color: #155724; }
.task-status.error { background: #f8d7da; color: #721c24; }
.task-status.info { background: #d1ecf1; color: #0c5460; }

.progress-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    text-align: center;
    font-weight: 600;
    color: #555;
}

/* Table Styles */
.task-history {
    margin-top: 30px;
}

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

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

thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

tbody tr:hover {
    background: #f8f9ff;
}

.empty-row td {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* New row animation */
.new-row {
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% {
        background: #d4edda;
        transform: scale(1.01);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-action {
    background: #e8eaff;
    color: #667eea;
}

/* Status indicators */
.status-success {
    color: #155724;
    font-weight: 500;
}

.status-error {
    color: #721c24;
    font-weight: 500;
}

.status-info {
    color: #0c5460;
    font-weight: 500;
}

.nav-links {
    margin-top: 20px;
    text-align: center;
}

small {
    color: #888;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 10px;
    }
    
    .login-box, .dashboard {
        padding: 20px;
    }
    
    th, td {
        padding: 10px;
        font-size: 12px;
    }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    padding: 10px 20px;
    background: transparent;
    color: #888;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    width: auto;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab:hover {
    color: #667eea;
}

.tab-content {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: monospace;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.help-text {
    margin-top: 20px;
    padding: 15px;
    background: #f0f4ff;
    border-radius: 10px;
}

.help-text h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.help-text ol {
    padding-left: 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.help-text code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.method-cards {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.method-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s;
}

.method-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.method-card.recommended {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.method-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.method-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.method-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.method-card ul li {
    padding: 5px 0;
    font-size: 13px;
    color: #555;
}

.method-card button {
    margin-bottom: 10px;
}

.method-card input, 
.method-card textarea {
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.capture-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 8px;
}

.status-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
}
