/* Modal overlay and container */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}
.modal.is-open {
    display: block;
}
.modal__overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1rem;
}
.modal__container {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}
.modal__header {
    position: relative;
}
.modal__title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}
/* Close icon styling */
.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}
.modal__close svg {
    display: block;
}
.modal__close svg line {
    stroke: #007bff; /* Blue color */
}
/* Modal button styles */
.modal__btn {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.modal__btn:hover {
    background: #0056b3;
}
.modal__btn.approved {
    background: #28a745 !important;
    color: #fff !important;
}
/* Iframe border */
iframe.border {
    border: 1px solid #ccc;
}
/* Spinner styles for iframe container */
.iframe-container {
    position: relative;
}
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Tab navigation styling */
#policy-tabs {
    margin-bottom: 1rem;
    min-height: 2.5rem;
}
#policy-tabs.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #777;
}
#policy-tabs button {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
}
#policy-tabs button.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
    color: #007bff;
}
/* Tab content */
.policy-tab-content {
    margin-top: 1rem;
}
.policy-tab-content.hidden {
    display: none;
}

#policy-tabs button {
    font-size: 16px;
}

.policy-error-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}
