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

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.splash-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.enter-btn {
    padding: 15px 30px;
    border: 3px solid black;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, sans-serif;
    min-width: 150px;
    text-align: center;
    color: black;
}

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

/* 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;
}

.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;
}

.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;
    text-align: center;
}

.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;
}

/* Legacy styles for compatibility - removing old proxy-gen-buttons styles */
.proxy-gen-buttons {
    display: none;
}

/* Contact Section - Mobile Optimized */
.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%;
    }
    
    .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;
    }
} 