/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Ensure white background and black text */
body {
    background-color: white;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

/* Hide sections */
.hidden {
    display: none;
}

/* Navigation Header Styles - Mobile Optimized */
.nav-header {
    border: 3px solid black;
    background-color: white;
    display: flex;
    width: 100%;
    max-width: 500px;
    margin-bottom: 0;
}

.nav-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    border-right: 2px solid black;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: black;
    min-height: 50px;
}

.nav-btn:last-child {
    border-right: none;
}

.nav-btn:hover {
    background-color: #f0f0f0;
}

.nav-btn.active {
    background-color: #e0e0e0;
    color: black;
}

.tool-box {
    border: 3px solid black;
    border-top: none;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    background-color: white;
}

.input-section {
    margin-bottom: 15px;
}

.input-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: black;
}

.input-section input {
    width: 100%;
    padding: 8px;
    border: 2px solid black;
    font-size: 14px;
    color: black;
    background-color: white;
}

.input-section input::placeholder {
    color: #666;
}

/* Proxy Selection Section */
.proxy-selection-section {
    background: #f5f5f5;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.proxy-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proxy-option:last-child {
    margin-bottom: 0;
}

.proxy-option:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.proxy-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #333;
}

.proxy-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.proxy-option-icon {
    font-size: 20px;
    margin-right: 12px;
    min-width: 24px;
}

.proxy-option-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.proxy-option-text strong {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.proxy-option-text small {
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

.upload-section {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-section label {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    color: black;
    flex: 1;
    min-width: 200px;
}

.upload-section input[type="file"] {
    display: none;
}

.upload-section button {
    padding: 8px 15px;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    color: black;
    min-width: 100px;
}

.upload-section button:hover {
    background-color: #f0f0f0;
}

.file-list-area {
    border: 2px solid black;
    height: 200px;
    margin-bottom: 15px;
    padding: 15px;
    overflow-y: auto;
    background-color: white;
}

.file-list-content {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    color: black;
}

.file-list-content p {
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 2px;
    color: black;
}

.action-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.action-buttons button {
    padding: 10px 20px;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: black;
    min-width: 80px;
}

.action-buttons button:hover {
    background-color: #f0f0f0;
}

.new-proxies-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.new-proxies-section button {
    padding: 10px 20px;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: black;
    min-width: 120px;
}

.new-proxies-section button:hover {
    background-color: #f0f0f0;
}

.new-proxies-section button:disabled {
    background-color: #e0e0e0;
    color: #666;
    cursor: not-allowed;
}

.duration-section {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid black;
    padding: 10px 20px;
    background-color: white;
    min-height: 44px;
    min-width: 140px;
}

.duration-section label {
    font-weight: bold;
    font-size: 14px;
    color: black;
    white-space: nowrap;
}

.duration-section input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid black;
    font-size: 14px;
    color: black;
    background-color: white;
}

.duration-section input:focus {
    outline: 2px solid #333;
    outline-offset: 1px;
}

.duration-label {
    font-size: 14px;
    color: black;
    font-weight: bold;
}

/* Proxy Generator Styles - Mobile Optimized */
.proxy-display-area {
    border: 2px solid black;
    height: 300px;
    margin-bottom: 15px;
    padding: 15px;
    overflow-y: auto;
    background-color: white;
}

.proxy-display-content {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    font-family: monospace;
    color: black;
}

.proxy-controls-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.proxy-controls-row:last-child {
    margin-bottom: 0;
}

.proxy-count-section {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid black;
    padding: 8px 12px;
    background-color: white;
}

.proxy-count-section label {
    font-weight: bold;
    font-size: 14px;
    color: black;
    white-space: nowrap;
}

.proxy-count-section input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid black;
    font-size: 14px;
    color: black;
    background-color: white;
    text-align: center;
}

.proxy-count-section input:focus {
    outline: 2px solid #333;
    outline-offset: 1px;
}

.proxy-action-buttons {
    display: flex;
    gap: 10px;
}

.proxy-action-buttons button {
    padding: 10px 20px;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: black;
    min-width: 80px;
}

.proxy-action-buttons button:hover {
    background-color: #f0f0f0;
}

.server-ping-section {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid black;
    padding: 8px 12px;
    background-color: white;
}

.server-ping-section label {
    font-weight: bold;
    font-size: 14px;
    color: black;
    white-space: nowrap;
}

.server-ping-section select {
    padding: 4px 6px;
    border: 1px solid black;
    font-size: 14px;
    color: black;
    background-color: white;
    min-width: 120px;
}

.server-ping-section select:focus {
    outline: 2px solid #333;
    outline-offset: 1px;
}

.save-button-section button {
    padding: 10px 20px;
    border: 2px solid black;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: black;
    min-width: 120px;
}

.save-button-section button:hover {
    background-color: #f0f0f0;
}

.proxy-gen-buttons {
    display: none;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    min-height: 250px;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    border: 2px solid black;
    cursor: pointer;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.qr-code-image:hover {
    opacity: 0.8;
}

.qr-label {
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    padding: 8px 16px;
    border: 2px solid black;
    background-color: white;
    color: black;
}

/* Mobile-specific optimizations */
@media screen and (max-width: 768px) {
    body {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .container {
        padding: 5px;
        max-width: 100%;
    }
    
    .nav-header {
        max-width: 100%;
    }
    
    .nav-btn {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .tool-box {
        padding: 15px;
        max-width: 100%;
    }
    
    .proxy-selection-section {
        padding: 10px;
    }

    .proxy-option {
        padding: 8px;
        margin-bottom: 8px;
    }

    .proxy-option-icon {
        font-size: 18px;
        margin-right: 8px;
    }

    .proxy-option-text strong {
        font-size: 13px;
    }

    .proxy-option-text small {
        font-size: 11px;
    }

    .upload-section {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .upload-section label {
        min-width: auto;
        text-align: center;
    }
    
    .upload-section button {
        min-width: auto;
        width: 100%;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .action-buttons button,
    .save-button-section button {
        flex: 1;
        min-width: auto;
    }
    
    .action-buttons-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .duration-section {
        width: 100%;
        justify-content: center;
    }
    
    .proxy-controls-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .proxy-count-section,
    .server-ping-section {
        width: 100%;
        justify-content: center;
    }
    
    .proxy-action-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .proxy-action-buttons button,
    .save-button-section button {
        flex: 1;
        min-width: auto;
    }
    
    .qr-code-image {
        width: 120px;
        height: 120px;
    }
    
    .contact-content {
        padding: 20px 0;
    }
    
    .file-list-area,
    .proxy-display-area {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .nav-btn {
        padding: 10px 5px;
        font-size: 11px;
    }
    
    .tool-box {
        padding: 10px;
    }
    
    .input-section input,
    .upload-section button,
    .action-buttons button,
    .proxy-gen-buttons button {
        font-size: 13px;
    }
    
    .file-list-area,
    .proxy-display-area {
        height: 200px;
        padding: 10px;
    }
    
    .qr-code-image {
        width: 100px;
        height: 100px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* How It Works Section Styles */
.how-it-works-content {
    border: 3px solid black;
    height: 450px;
    min-height: 450px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    padding-right: 10px;
    background-color: white;
    width: 100%;
    max-width: 500px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid black;
    background-color: white;
    color: black;
}

.info-section {
    margin-bottom: 20px;
    border: 2px solid black;
    background-color: white;
}

.subsection-title {
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 2px solid black;
    background-color: white;
    color: black;
}

.subsection-content {
    padding: 15px;
    font-size: 12px;
    line-height: 1.4;
    color: black;
    font-weight: 600;
}

.capability-item,
.feature-item,
.monitor-item,
.security-item,
.usage-step,
.advantage-item {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.capability-item:last-child,
.feature-item:last-child,
.monitor-item:last-child,
.security-item:last-child,
.usage-step:last-child,
.advantage-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.platform-item,
.arch-item,
.metric-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid black;
    background-color: white;
}

.platform-name,
.arch-title,
.metric-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: black;
}

.platform-details,
.arch-details,
.metric-details {
    font-size: 11px;
    line-height: 1.3;
    color: black;
}

/* Mobile optimizations for How It Works section */
@media screen and (max-width: 768px) {
    .how-it-works-content {
        height: 350px;
        min-height: 350px;
        max-height: 350px;
        padding: 15px;
        padding-right: 5px;
        border: 3px solid black;
        overflow-y: auto;
        background-color: white;
        width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 16px;
        padding: 8px;
    }
    
    .subsection-title {
        font-size: 13px;
        padding: 8px;
    }
    
    .subsection-content {
        padding: 12px;
        font-size: 11px;
    }
    
    .platform-name,
    .arch-title,
    .metric-title {
        font-size: 12px;
    }
    
    .platform-details,
    .arch-details,
    .metric-details {
        font-size: 10px;
    }
    
    .capability-item,
    .feature-item,
    .monitor-item,
    .security-item,
    .usage-step,
    .advantage-item {
        margin-bottom: 6px;
        padding: 4px 0;
    }
    
    .platform-item,
    .arch-item,
    .metric-item {
        margin-bottom: 12px;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .how-it-works-content {
        max-height: 400px;
    }
    
    .section-title {
        font-size: 14px;
        padding: 6px;
    }
    
    .subsection-title {
        font-size: 12px;
        padding: 6px;
    }
    
    .subsection-content {
        padding: 10px;
        font-size: 10px;
    }
    
    .platform-name,
    .arch-title,
    .metric-title {
        font-size: 11px;
    }
    
    .platform-details,
    .arch-details,
    .metric-details {
        font-size: 9px;
    }
} 