/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo-container {
    margin-bottom: 20px;
    position: relative;
}

.logo-container::before,
.logo-container::after {
    content: '✨';
    position: absolute;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.8;
}

.logo-container::before {
    top: -10px;
    left: 20%;
    animation-delay: 0s;
}

.logo-container::after {
    bottom: -10px;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

.logo {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    font-weight: 700;
}

.sun-icon {
    font-size: 4rem;
    animation: rotate 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 0, 0.8));
}

.logo-text {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sparkle {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: 1s;
}

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

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2) rotate(180deg);
    }
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Main content */
main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.2);
}

.tool-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Input container */
.input-container h2 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Format Note Styles */
.format-note, .card-formatter-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-formatter-info {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.formatter-icon {
    font-size: 1.5rem;
    margin-top: 2px;
}

.formatter-text {
    flex: 1;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #2d3748;
}

.formatter-examples {
    display: block;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    color: #1f2937;
}

.format-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.format-text {
    flex: 1;
    color: #4a5568;
    line-height: 1.4;
    font-size: 0.9rem;
}

.format-text strong {
    color: #2d3748;
    font-weight: 600;
}

.format-example {
    color: #667eea;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    background: #e6f3ff;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    border: 1px solid #b3d9ff;
}

.batch-format .format-example {
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

/* Speed Control */
.speed-control {
    margin: 12px 0;
}

.speed-control label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.speed-control select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    font-weight: 400;
}

.speed-control select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.speed-control select:disabled {
    background-color: #f7fafc;
    color: #718096;
    cursor: not-allowed;
    opacity: 0.8;
}

.validation-type-selector {
    margin-bottom: 20px;
}

.validation-type-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.validation-type-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.2s ease;
    font-weight: 400;
}

.validation-type-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

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

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

.input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.validate-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.batch-input {
    margin-bottom: 30px;
}

.batch-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.batch-input textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    font-weight: 400;
    line-height: 1.5;
}

.batch-input textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.batch-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.batch-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.reset-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
}

.batch-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.reset-btn:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

/* Quick presets */
.quick-presets h3 {
    margin-bottom: 12px;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.preset-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* Results container */
.results-container h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.result-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    border: 1px solid #e2e8f0;
}

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

.summary-item .label {
    display: block;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.summary-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.summary-item .value.live {
    color: #48bb78;
}

.summary-item .value.dead {
    color: #f56565;
}

.summary-item .value.unknown {
    color: #ed8936;
}

/* Results list */
.results-list {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    background: #f7fafc;
}

.no-results {
    text-align: center;
    color: #a0aec0;
    padding: 40px 20px;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-item.live {
    border-left-color: #48bb78;
}

.result-item.dead {
    border-left-color: #f56565;
}

.result-item.unknown {
    border-left-color: #ed8936;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-data {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2d3748;
    word-break: break-all;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.result-status.live {
    color: #48bb78;
}

.result-status.dead {
    color: #f56565;
}

.result-status.unknown {
    color: #ed8936;
}

/* Export section */
.export-section {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.export-btn, .clear-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.export-btn {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.export-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.export-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.clear-btn {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3);
}

/* Info sections */
.info-section, .validation-rules {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.info-section h2, .validation-rules h2 {
    text-align: center;
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-grid, .rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card, .rule-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-card h3, .rule-card h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    color: #4a5568;
    line-height: 1.6;
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card li {
    color: #4a5568;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.rule-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .tool-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .container {
        padding: 15px;
    }
    
    main {
        padding: 20px;
        border-radius: 15px;
    }
    
    .logo {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .sun-icon {
        font-size: 3rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .summary-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-btn {
        width: 100%;
        text-align: center;
    }
    
    /* How to Use Section Mobile */
    .how-to-container {
        padding: 30px 20px;
    }
    
    .how-to-container h2 {
        font-size: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .beta-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .support-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .beta-notice {
        margin: 15px;
        padding: 15px;
    }
    
    .beta-notice p {
        font-size: 1rem;
    }
    
    .export-section {
        flex-direction: column;
    }
    
    .info-grid, .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-container,
.results-container,
.info-section,
.validation-rules {
    animation: fadeIn 0.6s ease-out;
}

.result-item {
    animation: slideIn 0.3s ease-out;
}

/* Beta Notice Styles */
.beta-notice {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #ffa500;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.beta-badge {
    background: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.beta-notice p {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(255, 215, 0, 0.5);
        transform: scale(1.02);
    }
}

/* How to Use Section */
.how-to-use {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    margin: 40px 0;
    overflow: hidden;
}

.how-to-container {
    padding: 50px;
}

.how-to-container h2 {
    text-align: center;
    color: #4a5568;
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.step-card {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-content h3 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-content p {
    color: #718096;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-bottom: 50px;
}

.features-section h3 {
    text-align: center;
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-text p {
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* Beta Info Section */
.beta-info {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
}

.beta-info h3 {
    text-align: center;
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 30px;
}

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

.beta-phase {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.beta-phase h4 {
    color: #4a5568;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.beta-phase ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beta-phase li {
    padding: 8px 0;
    color: #718096;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.signup-notice {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.notice-badge {
    background: #e53e3e;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signup-notice p {
    color: #742a2a;
    font-weight: 600;
    line-height: 1.6;
    margin: 10px 0;
}

/* Support Section */
.support-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 40px;
}

.support-section h3 {
    text-align: center;
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 30px;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.support-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.support-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.support-item h4 {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.support-item p {
    color: #718096;
    margin: 0;
}

/* Checking Animation Styles */
.checking-item {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    animation: checking-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.checking-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checking-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.checking-info {
    flex: 1;
}

.checking-data {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.checking-progress {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes checking-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
        transform: scale(1.01);
    }
}

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

/* Live Stats Display */
.live-stats {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-item.live {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
}

.stat-item.dead {
    border-color: #f56565;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
}

.stat-item.unknown {
    border-color: #ed8936;
    background: linear-gradient(135deg, #fffaf0, #feebc8);
}

.stat-item.completed {
    border-color: #667eea;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.stat-label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

/* Progress Bar */
.batch-progress-bar {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.progress-text {
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.progress-time {
    font-weight: 500;
    color: #667eea;
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Completion Notifications */
.completion-notification {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    animation: slideInFromTop 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.completion-notification.live {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border: 2px solid #48bb78;
}

.completion-notification.dead {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 2px solid #f56565;
}

.completion-notification.unknown {
    background: linear-gradient(135deg, #fffaf0, #feebc8);
    border: 2px solid #ed8936;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-weight: 500;
    color: #2d3748;
}

.notification-progress {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Checking Item */
.checking-item .checking-status {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Panel Styles */
.admin-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.3);
}

/* Login Modal Styles */
.login-modal {
    max-width: 500px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.login-form {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.login-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: #fed7d7;
    color: #742a2a;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-info {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.login-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.login-info p {
    margin: 0 0 25px 0;
    opacity: 0.9;
    line-height: 1.6;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.feature .icon {
    font-size: 1.2rem;
}

/* Responsive Login */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .login-form,
    .login-info {
        padding: 20px;
    }
}

/* 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: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Admin Controls */
.admin-controls {
    margin-bottom: 30px;
}

.search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-section input,
.search-section select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-section input {
    flex: 2;
    min-width: 200px;
}

.search-section select {
    flex: 1;
    min-width: 150px;
}

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

.filter-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

/* History Table */
.history-table-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

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

.history-table th {
    background: #f7fafc;
    color: #4a5568;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: top;
}

.history-table tbody tr:hover {
    background: #f8fafc;
}

.history-table .no-data {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

.history-table .no-data:hover {
    background: white;
}

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

.status-badge.unknown {
    background: #feebc8;
    color: #7b341e;
}

/* Action buttons */
.action-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 2px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #cbd5e0;
}

.action-btn.danger {
    background: #fed7d7;
    color: #742a2a;
}

.action-btn.danger:hover {
    background: #feb2b2;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-action-btn:not(.danger) {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.admin-action-btn:not(.danger):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.admin-action-btn.danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.admin-action-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3);
}

.admin-action-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .search-section input,
    .search-section select {
        width: 100%;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .history-table {
        font-size: 12px;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px 6px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}