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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #5c5c5c;
    background: linear-gradient(35deg, rgba(92, 92, 92, 1) 0%, rgba(148, 187, 233, 1) 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
background: #940399;
background: linear-gradient(90deg, rgba(148, 3, 153, 1) 0%, rgba(9, 9, 121, 1) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.input-section {
    padding: 40px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.input-section label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.input-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: stretch;
    max-width: 600px;
}

#uploadSpeed {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.test-speed-btn {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.test-speed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.test-speed-btn:active {
    transform: translateY(0);
}

.test-speed-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.speed-test-status {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #6c757d;
    min-height: 20px;
}

.multistream-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #495057;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-label span {
    font-weight: 500;
}

.platform-selection {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.selection-hint {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
}

.platform-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.platform-checkbox {
    font-size: 0.95rem;
}

.bandwidth-split {
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 600;
    margin-top: 10px;
}

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

.results {
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.platform-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
}

.platform-icon {
    width: 32px;
    height: 32px;
}

.platform-section:first-child h2 {
    color: #9146ff;
}

.platform-section:nth-child(2) h2 {
    color: #ff0000;
}

.platform-section:nth-child(3) h2 {
    color: #53fc18;
}

.platform-section:nth-child(4) h2 {
    color: #00f2ea;
}

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

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

thead {
    background: #f8f9fa;
}

th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status.sufficient {
    background-color: #d4edda;
    color: #155724;
}

.status.adequate {
    background-color: #fff3cd;
    color: #856404;
}

.status.insufficient {
    background-color: #f8d7da;
    color: #721c24;
}

.status.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

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

footer {
    background: #f8f9fa;
    padding: 25px 30px;
    border-top: 2px solid #e9ecef;
}

.note {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .results {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px 8px;
    }

    .platform-section h2 {
        font-size: 1.5rem;
    }
}
