* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #2c3e50;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subtitle {
    font-size: 1em;
    opacity: 0.95;
}

/* Tabs */
.tabs {
    display: flex;
    background: #ecf0f1;
    border-bottom: 2px solid #d1d8e0;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 0.95em;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #dfe6e9;
    color: #2c3e50;
}

.tab-btn.active {
    background: white;
    color: #4285f4;
    border-bottom-color: #4285f4;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 30px;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Section Title */
.section-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 5px;
}

.info-box i {
    color: #2196f3;
    font-size: 1.2em;
    margin-top: 2px;
}

.notice-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: 5px;
}

.notice-box i {
    color: #ff9800;
}

.notice-box a {
    color: #ff9800;
    font-weight: 600;
    text-decoration: underline;
}

/* Textarea */
#account-list {
    width: 100%;
    height: 250px;
    padding: 15px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#account-list:focus {
    outline: none;
    border-color: #4285f4;
}

/* Mode Selector */
.mode-selector {
    margin-bottom: 20px;
}

.mode-selector h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mode-btn:hover {
    border-color: #4285f4;
    color: #4285f4;
}

.mode-btn.active {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed #dfe6e9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.upload-zone:hover {
    border-color: #4285f4;
    background: #f8f9fa;
}

.upload-zone i {
    font-size: 2.5em;
    color: #4285f4;
    margin-bottom: 10px;
    display: block;
}

.upload-zone p {
    color: #7f8c8d;
    font-weight: 500;
}

/* Check Button */
.check-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
}

.check-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Progress Bar */
.progress-bar {
    margin-top: 20px;
    background: #ecf0f1;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4 0%, #34a853 100%);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Results Section */
.results-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.result-categories {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.category-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border-left: 5px solid #95a5a6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-box.good {
    border-left-color: #27ae60;
}

.category-box.verified {
    border-left-color: #3498db;
}

.category-box.disabled {
    border-left-color: #e74c3c;
}

.category-box.notexist {
    border-left-color: #e67e22;
}

.category-box.unknown {
    border-left-color: #95a5a6;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-header span {
    font-weight: 600;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-actions {
    display: flex;
    gap: 8px;
}

.category-actions button {
    background: #ecf0f1;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    color: #7f8c8d;
}

.category-actions button:hover {
    background: #4285f4;
    color: white;
}

.category-count {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.category-list {
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Result Details Table */
.result-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-details h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.details-table-wrapper {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

#details-table {
    width: 100%;
    border-collapse: collapse;
}

#details-table th {
    background: #4285f4;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

#details-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
}

#details-table tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.status-good {
    background: #d4edda;
    color: #27ae60;
}

.status-verified {
    background: #cce5ff;
    color: #3498db;
}

.status-disabled {
    background: #f8d7da;
    color: #e74c3c;
}

.status-notexist {
    background: #ffe5cc;
    color: #e67e22;
}

.status-unknown {
    background: #e0e0e0;
    color: #7f8c8d;
}

.no-data {
    text-align: center;
    color: #95a5a6;
    padding: 30px !important;
}

/* Tool Container */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-container h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tool-container p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.tool-container textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    resize: vertical;
    margin-bottom: 15px;
}

.tool-btn {
    width: 100%;
    padding: 14px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

.disclaimer {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4285f4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3367d6;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.85em;
    }
}
