/* Service Header Container */
.service-header-container {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    align-items: center;
    text-align: center;
    color: #043259;
    font-family: "Nunito Sans";
    
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
    align-items: center;
}

.service-header .service-icon {
    width: 80px;
    height: 100px;
    margin-bottom: 16px;
}

.service-info {
    flex: 1;
}

.my-service {
    font-family: "Nunito Sans";
    font-size: 32px;
    font-weight: 600;
    color: #043259;
    margin: 0 0 10px 0;
}

.service-description {
    font-family: "Nunito Sans";
    font-size: 18px;
    font-weight: 400;
    color: #043259;
    margin: 0;
}

/* Main Services Container */
.service-container {
    max-width: 900px;
    min-width: 800px;
    margin: 0 auto 40px auto;
    padding: 40px;
    border: 4px solid #4D6F8C;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    background: white;
    position: relative;
}

/* Add Service Button (Top Right) */
.add-service-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid #163760;
    border-radius: 5px;
    background: rgba(176, 217, 205, 0.35);;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-service-btn:hover {
    background: rgba(96, 166, 153, 0.1);
    transform: scale(1.05);
}

.add-service-btn img {
    width: 24px;
    height: 24px;
}


.back-to-dashboard-btn {
    max-height: 40px;
    border-radius: 5px;
    background: #043259;
    color: #ffffff;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    text-align: center;
    padding: 12px 24px;
    text-decoration: none;
}

a { 
    text-decoration: none; 
}

.back-to-dashboard-btn:hover {
    background: rgba(96, 166, 153, 1);
    text-decoration: none;
    transition: all 0.2s ease;
    
}

.back-to-dashboard-btn img {
    width: 16px;
    height: 16px;
}

/* Services List Container */
#services-list {
    margin-top: 20px;
}

/* Specialty Section */
.specialty-section {
    margin-bottom: 40px;
}

.specialty-section:last-child {
    margin-bottom: 40px;
}

.specialty-title {
    font-family: "Nunito Sans";
    font-size: 24px;
    font-weight: 600;
    color: #043259;
    margin-bottom: 15px;
}

/* Services Table */
.services-table {
    width: 100%;
    border: 2px solid #036A6F;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(176, 217, 205, 0.35);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.services-table table {
    width: 100%;
    border-collapse: collapse;
}

.services-table thead {
    background: rgba(96, 166, 153, 0.3);
}

.services-table th {
    padding: 12px 16px;
    text-align: left;
    font-family: "Nunito Sans";
    font-size: 20px;
    font-weight: 700;
    color: #043259;
    border-bottom: 2px solid #036A6F;
}

.services-table td {
    padding: 12px 16px;
    font-family: "Nunito Sans";
    font-size: 16px;
    color: #043259;
    border-bottom: 1px solid rgba(96, 166, 153, 0.2);
}

.services-table tbody tr:last-child td {
    border-bottom: none;
}

.services-table tbody tr:hover {
    background: rgba(96, 166, 153, 0.08);
}


/* Status Column */
.status-active {
    color: #60A699;
    font-weight: 600;
}

.status-active::before {
    content: "✓ ";
}

.status-inactive {
    color: #999;
    font-weight: 600;
}

/* Action Button */
.action-btn {
    background: none;
    border: none;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(96, 166, 153, 0.15);
}

.action-btn img {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-state {
    background: rgba(255, 243, 205, 0.5);
    border: 1px solid #FFC107;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.empty-state-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Nunito Sans";
    font-size: 16px;
    color: #043259;
}

.empty-state-message::before {
    content: "⚠️";
    font-size: 20px;
}

.empty-state-add-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #043259;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.empty-state-add-btn:hover {
    background: rgba(176, 217, 205, 0.75);
}

.empty-state-add-btn img {
    width: 24px;
    height: 24px;
}

/* Save Changes Button */
.save-changes-btn {
    width: 203px;
    height: 40px;
    border-radius: 5px;
    background: #043259;
    color: #ffffff;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
}

.save-changes-btn:hover {
    transition: all 0.2s ease;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 150, 79, 0.4);
}

.save-changes-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Help Text Bottom */
.help-text-bottom {
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 14px;
    color: #043259;
    display: block;
    cursor: pointer;
    margin: 0 auto;
    text-decoration: none;
    margin-top: 20px;
}

.help-text-bottom a {
    color: #036A6F;
    text-decoration: underline;
    font-weight: 600;
}

.help-text-bottom a:hover {
    color: #043259;
    text-decoration: underline;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex !important;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
    font-family: "Nunito Sans";
    color: #043259;
    z-index: 10000;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    color: #043259;
    line-height: 1;
}

.modal-close:hover {
    color: #60A699;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header .modal-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.modal-header h2 {
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #E7964F;
    font-weight: bold;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #60A699;
    border-radius: 5px;
    font-family: "Nunito Sans";
    font-size: 14px;
    color: #043259;
    background: rgba(176, 217, 205, 0.15);
    box-sizing: border-box;
}


.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60A699;
    box-shadow: 0 0 0 3px rgba(96, 166, 153, 0.1);
}

.form-group select:disabled {
    background: #E8E8E8;
    color: #999;
    cursor: not-allowed;
}

.form-group select {
    padding-right: 40px !important; /* Override the grouped padding */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23043259' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.form-group textarea {
    background-image: none !important;
}

/* Duration Buttons */
.duration-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.duration-btn {
    padding: 12px;
    border: 1px solid #60A699;
    border-radius: 5px;
    background: rgba(176, 217, 205, 0.15);
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-btn:hover {
    background: rgba(96, 166, 153, 0.25);
}

.duration-btn.active {
    background: #60A699;
    color: white;
    border-color: #60A699;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-label {
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 600;
    color: #043259;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color:#60A699;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}


.btn-primary, #continue {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    background: #043259;
    color: white;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin: 0 auto;
    }

.btn-primary:hover {
    background: rgba(96, 166, 153, 1);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.btn-secondary {
    padding: 14px 30px;
    border: 2px solid #60A699;
    border-radius: 5px;
    background: white;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(96, 166, 153, 0.1);
}

.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    background: #E74C3C;
    color: white;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px 2px #E56163;
}

/* Delete Container */
.delete-container {
    text-align: center;
    padding-top: 20px;
}

.delete-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60A699;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.delete-link:hover {
    color: #E74C3C;
}

.delete-link img {
    width: 16px;
    height: 16px;
}

/* Delete Confirmation Modal */
.delete-modal {
    max-width: 500px;
}

.delete-message {
    text-align: center;
    margin: 20px 0;
}

.delete-message p {
    font-family: "Nunito Sans";
    font-size: 16px;
    color: #043259;
    margin: 10px 0;
}

.service-details {
    background: rgba(96, 166, 153, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.service-details p {
    margin: 8px 0;
    text-align: left;
}

.warning-text {
    color: #E74C3C;
    font-weight: 600;
    font-style: italic;
}

.modal-help-text {
    text-align: center;
    font-size: 14px;
    color: #043259;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E0E0E0;
}

.modal-help-text a {
    color: #036A6F;
    text-decoration: underline;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(96, 166, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #60A699;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #043259;
    margin-bottom: 10px;
}

.popup-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.popup-message #successMessage,
.popup-message #errorMessage,
.popup-message #infoMessage {
    font-size: 16px;
    color: #043259;
    text-align: center;
    line-height: 1.5;
}

.error-btn {
    border-radius: 5px;
    background: #043259;
    color: #ffffff;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    padding: 12px 24px;
}

/* Error Icon */
.error-icon-square {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: rgba(231, 76, 60, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #E74C3C;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: #E74C3C;
    margin-bottom: 10px;
}

/* Info Icon */
.info-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(231, 150, 79, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #E7964F;
    font-weight: 700;
    margin: 0 auto 20px auto;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: #E7964F;
    margin-bottom: 10px;
}

/* Delete Confirmation Modal - Red styling */
#deleteModal .modal-content {
    border: 1px solid #E74C3C; /* ✅ Red border */
    box-shadow: 0 4px 6px 2px #E74C3C; /* ✅ Red shadow like NPI registration */
}

#deleteModal .modal-header h2 {
    color: #E74C3C; /* ✅ Red title */

    /* Success Modal Styling */
.success-modal {
    border: 1px solid #60A699;
    box-shadow: 0 4px 6px 2px #60A699;
}

.success-modal .modal-icon {
    font-size: 60px;
    color: #60A699;
    margin-bottom: 20px;
}

/* Error Modal Styling */
.error-modal {
    border: 1px solid #E74C3C;
    box-shadow: 0 4px 6px 2px #E74C3C;
}

.error-modal .modal-icon {
    font-size: 60px;
    color: #E74C3C;
    margin-bottom: 20px;
}

.error-modal .modal-title {
    color: #E74C3C;
}

/* Info Modal Styling */
.info-modal {
    border: 1px solid #E7964F;
    box-shadow: 0 4px 6px 2px rgba(231, 150, 79, 0.4);
}

.info-modal .modal-icon {
    font-size: 60px;
    color: #E7964F;
    margin-bottom: 20px;
}

.info-modal .modal-title {
    color: #E7964F;
}

/* Modal Message Container */
.modal-message-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    text-align: center;
    align-items: center;
}

/* Modal Icons */
.modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 60px;
    font-weight: 700;
    margin: 0 auto 15px auto;
}

.modal-icon.success {
    background: rgba(96, 166, 153, 0.1);
    color: #60A699;
}

.modal-icon.error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.modal-icon.info {
    background: rgba(231, 150, 79, 0.1);
    color: #E7964F;
}
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-container {
        max-width: 90%;
        min-width: auto;
        padding: 40px;
        border-width: 2px;
    }

    .add-service-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .duration-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 25px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .service-header .service-icon {
        width: 60px;
        height: 80px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .my-service {
        font-size: 20px;
    }

    .service-description {
        font-size: 16px;
        margin-bottom: 8px;
        margin-top: 8px;
    }

    .service-container {
        width: 80%;
    }

    .service-header-container {
        margin-bottom: 0;
    }

    .back-to-dashboard-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .specialty-title {
        font-size: 20px;
        font-weight: 600;
    }

    .services-table th {
        font-size: 16px;
        font-weight: 400;
    }

    .services-table td {
        font-size: 12px;
    }

    .add-service-btn img {
        width: 20px;
        height: 20px;
    }

    .add-service-btn {
        width: 30px;
        height: 30px;
    }

    .btn-primary, .btn-danger, .btn-secondary {
        padding: 8px 16px;
        font-size: 13px;
    }

    .modal-content {
        width: 85% !important;
    }

    .modal-close {
        font-size: 20px;
    }

    .popup-success {
        width: 80%;
    }

    .btn-primary, #continue {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .modal-header .modal-icon {
        width: 40px
    }

    .btn-text {
        display: none;
    }

    .services-table table th:nth-child(3),
    .services-table table td:nth-child(3) {
        display: none;
    }

    .services-table table th:nth-child(2),
    .services-table table td:nth-child(2) {
        text-align: center;
    }

}