.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    /* margin-bottom: 5px; */
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group .form-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group .form-control p {
    margin: 0;
    flex: 1;
}

.form-group .form-control i {
    font-size: 16px;
    color: #4299e1;
    cursor: pointer;
}

.update-site-label {
    margin-top: 0;
    margin-bottom: 5px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-bottom: 20px;
}

.custom-table th,
.custom-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.custom-table th {
    background-color: #f1f1f1;
}

.stage-ready {
    background-color: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.edit-domain,
.delete-domain {
    color: blue;
    cursor: pointer;
}

.delete-domain {
    color: red;
}

.manage-site-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nameservers-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-manage-site-content {
    border-radius: 15px;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 550px;
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-popup:hover,
.close-popup:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-nameservers-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-nameservers-popup:hover,
.close-nameservers-popup:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.delete-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: stretch;
}

.delete-modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    flex: 1;
    background-color: initial;
    height: 45px;
    line-height: 25px;
}

.confirm-delete {
    background: #dc3545 !important;
    color: white;
}

.cancel-delete {
    background: #6c757d !important;
    color: white;
}

.toggle-switch {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 8px;
    background-color: #000000e0;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 5px;
}

.toggle-switch-content,
.switch-label {
    color: #ffda18 !important;
}

#primaryDomainHelp {
    font-size: 12px;
    margin: 0px;
}

#activeDomainHelp {
    font-size: 12px;
    margin: 0px;
    color: #2575fc;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #ffda18;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.domain-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 4px;
    background: #f8f9fa;
}

.domain-wrapper p {
    margin: 0;
    flex: 1;
}

.domain-wrapper i {
    font-size: 16px;
    color: #4299e1;
}

.tooltip-container {
    display: flex;
    align-items: center;
    position: relative;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    position: absolute;
    z-index: 10;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    font-size: 12px;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-icon {
    margin-left: 5px;
    cursor: pointer;
    font-size: 16px;
}

.active-switch {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 8px;
    background-color: #cfe1ff;
    justify-content: space-between;
}

.active-switch .switch-label {
    color: #2575fc !important;
}

.active-switch .slider {
    background-color: #ccc;
}

.active-switch input:checked+.slider {
    background-color: #2575fc;
}

.primary-switch .slider {
    background-color: #ccc;
}

.primary-switch input:checked+.slider {
    background-color: #ffda18;
}

.primary-switch input:checked+.slider:before {
    transform: translateX(26px);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00A15D;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.membership-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #DDFFF0;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #DDFFF0;
    height: 37px;
    border-radius: 4px;
}

.membership-container select {
    flex: 1;
}

.membership-container button {
    flex-shrink: 0;
}

.date-group {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Khoảng cách giữa các phần tử */
}

.date-group label {
    font-weight: bold;
    margin-right: 5px;
}

.date-group p {
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(25px);
}

.save-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.save-button-container .save-site-button {
    padding: 10px 20px;
    border-radius: 4px;
}

.add-domain-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.centered-btn {
    display: block !important;
    margin: 0 auto;
    padding: 10px 20px !important;
    margin-top: 10px;
}

.centered-btn:hover {
    background-color: #0056b3;
}

button#add-domain-button {
    padding: 10px 20px;
    margin-bottom: 5px;
}

.status-done {
    background: #c6f6d5;
    color: rgb(61, 144, 102);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status-checking-dns {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status-checking-ssl-cert {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.status-done-without-ssl {
    background-color: #333;
    color:#fff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
}

.status-failed {
    background-color: #f8d7da;
    color: #b71c1c;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.popup-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 100;
}

.popup-option-btn {
    padding: 10px 20px !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    background-color: #0073aa !important;
    color: white !important;
    transition: background-color 0.3s ease !important;
    width: 100%; /* Ensure equal width */
    max-width: 200px; /* Set a maximum width for responsiveness */
    text-align: center;
}

.popup-option-btn:hover {
    background-color: #005177 !important;
}

#guide-button {
    background-color: teal;
    color:white;
}

@media (max-width: 768px) {
    .custom-table {
        overflow-x: auto;
        display: block;
    }
    .popup-options {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center;
    }
    .popup-option-btn {
        max-width: 100%; /* Allow buttons to take full width on smaller screens */
    }
    
    .domain-container > div {
        flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
        gap: 10px;
    }
    .popup-manage-site-content {
        margin: 70% auto;
    }
}

.site-size-info {
    margin: 20px 0;
    padding: 15px;
    background: #ddfff0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-container {
    width: 100%;
    margin: 10px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #81c784);
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.package-info {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}


div#screenshot-preview {
    width: 250px;
    border: 2px solid grey;
    border-radius: 50px;
}