/* General styles for body and main container */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #121212; /* Dark background */
    color: #ffffff; /* White text */
}

/* Logo styling */
header .logo {
    height: 120px; /* Adjusted height for visual balance */
    margin-bottom: 0px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Center the content container */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

/* Converter form styling */
.converter {
    background-color: #1E1E1E; /* Dark background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

/* Flexbox layout for left and right sections */
.form-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-left, .form-right {
    flex: 1;
    padding: 10px;
    box-sizing: border-box; /* Ensures padding is included in width */
}

/* Input styling */
label {
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #ffffff; /* White text for labels */
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    background-color: #2A2A2A; /* Dark input background */
    color: #ffffff; /* White text */
    box-sizing: border-box; /* Ensures padding and borders are included */
}

/* Table styling */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    text-align: left;
    background-color: #1E1E1E; /* Dark background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    text-align: center; /* Ensure table text is centered */
}

.styled-table thead th {
    background-color: #2C66DC; /* Highlight color for header */
    color: white;
    font-weight: bold;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #2A2A2A; /* Darker row background */
}

.styled-table td i {
    font-size: 24px;
    display: inline-block;
    width: 40px; /* Adjust width for proper alignment */
    text-align: center;
    color: #2C66DC; /* Highlight icon color */
}

/* Clipboard button styling */
.copy-btn {
    background-color: transparent;
    border: none;
    color: #2C66DC;
    font-size: 16px;
    cursor: pointer;
    padding: 0 8px;
}

.copy-btn:hover {
    color: #1B4DB8;
}

/* Tooltip styling */
.copy-tooltip {
    display: none; /* Hidden by default */
    background-color: black; /* Dark background for tooltip */
    color: white; /* White text */
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    position: absolute;
    white-space: nowrap;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Ensure it stays above other elements */
}

/* Centralized "Copied!" message in table header */
.copy-message {
    display: none;
    background-color: yellow; /* Change to suit your theme */
    color: black;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    width: 200px; /* Adjust width if needed */
    margin: 0 auto;
}


/* Footer styling */
footer {
    text-align: center;
    width: 100%;
    color: #666;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    .form-left, .form-right {
        width: 100%;
        padding: 5px; /* Reduced padding for smaller screens */
    }

    .converter {
        padding: 15px;
    }

    /* Make the table scrollable */
    .styled-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap; /* Prevents long content from wrapping */
    }
}

@media (max-width: 480px) {
    /* Further reduce the padding and font size for mobile */
    .styled-table th, .styled-table td {
        padding: 5px 8px; /* Reduce padding on mobile */
        font-size: 12px;
    }

    h2 {
        font-size: 1.2em;
    }

    /* Ensure input boxes maintain good spacing on smaller screens */
    input {
        margin-bottom: 15px;
    }
}
