@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: #075E54;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

#app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.status-box, .controls-box, .log-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.log-box {
    grid-column: 1 / -1;
}

h2 {
    color: #128C7E;
    border-bottom: 2px solid #ECE5DD;
    padding-bottom: 10px;
    margin-top: 0;
}

#connection-area {
    text-align: center;
}

#status-message {
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    word-wrap: break-word;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qr-container {
    text-align: center;
    margin-top: 20px;
}

#qr-container p {
    font-size: 0.9em;
    color: #666;
}

#qr-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border: 5px solid #128C7E;
    border-radius: 8px;
}

.control-section {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

input[type="file"], input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #128C7E;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

#connect-btn {
    background-color: #075E54;
    max-width: 300px;
    margin: 0 auto;
}

#connect-btn:hover {
    background-color: #128C7E;
}

#logs {
    height: 200px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.hidden {
    display: none;
}



@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    #app {
        grid-template-columns: 1fr;
    }
}
