body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark {
    background-color: #222;
    color: #ddd;
}
a {
    color: #0B652E;
    text-decoration: none;
    font-weight: 700;
}
a:hover {
    color: #323232;
    text-decoration: none;
}
.post-img{width: 100%;}
.container {
    max-width: 900px;
    margin: 10px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.dark .container {
    background-color: #444;
}
h1 {
    text-align: center;
    color: #4CAF50;
    font-size: 28px;
    margin-bottom: 20px;
}
.form-group {
    margin: 20px 0;
}
input[type="text"], input[type="color"], textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #344CB7;
    border-radius: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}
input[type="text"]:focus, input[type="color"]:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
}
button {
    background-color: #344CB7;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    width: auto;
    margin-top: 5px;
    box-sizing: border-box;
    transition: background-color 0.3s;
}
button:hover {
    background-color: #000957;
}
.output {
    margin-top: 20px;
    font-size: 16px;
    word-wrap: break-word;
}
.direct-link-box {
    padding: 15px;
    background-color: #e9f7e5;
    border: 1px solid #4CAF50;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 16px;
    word-wrap: break-word;
    text-align: center;
}
.qr-code {
    margin-top: 20px;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
.qr-code canvas {
    max-width: 100%;
    height: auto;
}
.copy-btn, .download-btn, .share-btn {
    padding: 12px 20px;
    background-color: #CC2B52;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    width: auto;
    font-size: 16px;
    text-align: center;
}
.copy-btn:hover, .download-btn:hover, .share-btn:hover {
    background-color: #344CB7;
}
.download-btn {
    background-color: #E8083C;
}
.download-btn:hover {
    background-color: #bd123a;
}
.share-btn {
    background-color: #006769;
}
.share-btn:hover {
    background-color: #0d4d4e;
}
.error {
    color: red;
}
.qr-size-options {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
    display: none;
}
.qr-size-options button {
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    background-color: #0A5EB0;
    color: white;
    cursor: pointer;
    width: 30%;
    text-align: center;
    transition: background-color 0.3s;
}
.qr-size-options button:hover {
    background-color: #07498a;
}
.container-footer {
    max-width: 900px;
    margin: 10px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.history-section {
    margin-top: 20px;
}
.history-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    word-wrap: break-word;
    position: relative;
}
.history-item span {
    font-size: 14px;
    color: #777;
}
.history-item a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    word-wrap: break-word;
}
.history-item .buttons {
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}
.history-item button {
    background-color: #323232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
}
.history-item button:hover {
    background-color: #1e1e1e;
}
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.button-container button {
    flex: 1;
}
.additional-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}
.additional-buttons button {
    flex: 1;
    padding: 10px;
    background-color: #0E813A;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s;
}
.additional-buttons button:hover {
    background-color: #45a049;
}
.customization-options {
    display: none;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
}
.customization-options h3 {
    margin-bottom: 15px;
    color: #4CAF50;
}
.customization-options label {
    margin-right: 10px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.customization-options .form-group {
    margin-bottom: 15px;
}
.customization-options button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.customization-options button:hover {
    background-color: #45a049;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.color-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.color-box label {
    margin: 0;
}
.color-box input[type="color"] {
    padding: 0px;
    border: none;
    box-shadow: none;
}
.style-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.style-select label {
    margin: 0;
}
.style-select select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.action-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
.align-center{text-align: center !important;}
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    button {
        padding: 12px;
    }
    textarea {
        font-size: 14px;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 24px;
    }
    input[type="text"] {
        font-size: 14px;
    }
    button {
        font-size: 14px;
    }
    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .history-item span {
        font-size: 12px;
    }
    .history-item a {
        font-size: 11px;
    }
    .history-item button {
        font-size: 12px;
        padding: 5px 8px;
    }
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }
}