/* CSP 安全的樣式 - 替換內聯樣式 */

/* 通用工具類 */
.csp-display-none {
    display: none !important;
}

.csp-display-block {
    display: block !important;
}

.csp-display-inline-block {
    display: inline-block !important;
}

.csp-color-red {
    color: red !important;
}

.csp-color-green {
    color: green !important;
}

.csp-color-blue {
    color: blue !important;
}

.csp-font-size-small {
    font-size: 0.8em;
}

.csp-font-size-large {
    font-size: 1.2em;
}

.csp-font-size-22 {
    font-size: 1.375em;
}

.csp-margin-left-100 {
    margin-left: 100px;
}

.csp-text-center {
    text-align: center;
}

.csp-text-right {
    text-align: right;
}

.csp-text-decoration-underline {
    text-decoration: underline;
}

/* Logo 樣式 */
.csp-logo-desktop {
    width: 150px;
    height: auto;
}

.csp-logo-mobile {
    width: 100px;
    height: auto;
}

/* Footer Logo 樣式 */
.csp-footer-logo {
    width: 80px;
    height: 60px;
}

/* Google Tag Manager iframe */
.csp-gtm-iframe {
    width: 0;
    height: 0;
    display: none;
    visibility: hidden;
}

/* 表格樣式 */
.csp-table-small {
    font-size: 0.8em;
}

/* Verify 相關樣式 */
.csp-verify-form-group {
    margin-left: 100px;
}

.csp-verify-nav-hidden {
    display: none;
}

.csp-verify-table-small {
    font-size: 0.8em;
}

/* 填充和間距樣式 */
.csp-padding-10-0 {
    padding: 10px 0 0 0;
}

.csp-padding-20-30 {
    padding: 20% 30px;
}

.csp-padding-10-30-20 {
    padding: 10% 30px 20% 30px;
}

/* 邊框樣式 */
.csp-border-bottom-1 {
    border-bottom: 1px solid #CCC;
}

/* 響應式設計 */
@media screen and (max-width: 768px) {
    .csp-margin-left-100 {
        margin-left: 20px;
    }
    
    .csp-verify-form-group {
        margin-left: 20px;
    }
    
    .csp-logo-desktop {
        width: 120px;
    }
    
    .csp-logo-mobile {
        width: 80px;
    }

    .csp-padding-20-30 {
        padding: 10% 15px;
    }
}

/* 防止 CSP 違規的輔助類 */
.csp-no-inline-style {
    /* 確保沒有內聯樣式的元素有基本樣式 */
}

/* 安全的動畫和過渡效果 */
.csp-fade-in {
    animation: cspFadeIn 0.3s ease-in;
}

@keyframes cspFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csp-slide-down {
    animation: cspSlideDown 0.3s ease-out;
}

@keyframes cspSlideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 狀態指示器 */
.csp-status-pending {
    color: #dc3545;
    font-weight: bold;
}

.csp-status-approved {
    color: #28a745;
    font-weight: bold;
}

.csp-status-rejected {
    color: #6c757d;
    font-weight: bold;
}

/* 導航相關 */
.csp-nav-active {
    background-color: #007bff !important;
    color: white !important;
}

/* 表單輔助 */
.csp-form-inline {
    display: inline-block;
    width: auto;
    max-width: 300px;
}

/* 容器樣式 */
.csp-container-padding {
    padding: 20px 30px;
}

.csp-section-spacing {
    margin-bottom: 20px;
}

/* 認證頁面專用樣式 */
.csp-auth-container {
    margin: 0 auto;
    float: none;
}

.csp-auth-col-5 {
    width: 41.66667%;
}

.csp-auth-padding-bottom {
    padding-bottom: 20px;
}

.csp-auth-header {
    margin: 0;
    padding: 20px 0 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1.5em;
}

.csp-auth-error {
    color: red;
}

.csp-auth-button {
    margin-bottom: 15px;
}

.csp-auth-large-button {
    font-size: 1.2rem;
}

/* 居中和對齊 */
.csp-center-auto {
    margin: 0 auto;
    float: none;
}

.csp-padding-top-2 {
    padding-top: 2em;
}

.csp-margin-right-2 {
    margin-right: 2em;
}

.csp-padding-top-15 {
    padding-top: 15px;
}

/* 表格和列表樣式 */
.csp-cursor-pointer {
    cursor: pointer;
}

.csp-list-style-auto {
    list-style: auto;
}

/* 尺寸和間距 */
.csp-margin-0 {
    margin: 0;
}

.csp-margin-left-75 {
    margin-left: 75%;
}

.csp-margin-left-65 {
    margin-left: 65%;
}

.csp-margin-left-55 {
    margin-left: 55%;
}

.csp-margin-left-40 {
    margin-left: 40%;
}

.csp-margin-left-21 {
    margin-left: 21%;
}

.csp-margin-left-neg1 {
    margin-left: -1rem;
}

.csp-margin-bottom-0-05 {
    margin-bottom: 0.05rem;
}

/* 顯示和隱藏相關 */
.csp-display-line {
    display: inline;
}

/* 字體和顏色相關 */
.csp-font-size-0-875 {
    font-size: 0.875em;
}

/* 邊框和背景 */
.csp-border-bottom-1 {
    border-bottom: 1px solid #CCC;
}

/* 進度條 */
.csp-progress-bar {
    width: 0%;
}

/* 工具提示和輔助 */
.csp-tool-description {
    display: none;
}

/* 響應式布局增強 */
@media screen and (max-width: 768px) {
    .csp-auth-col-5 {
        width: 90%;
    }
    
    .csp-margin-left-75,
    .csp-margin-left-65,
    .csp-margin-left-55,
    .csp-margin-left-40,
    .csp-margin-left-21 {
        margin-left: 10px;
    }
}

/* 特殊狀態樣式 */
.csp-published {
    color: green;
}

.csp-unpublished {
    color: red;
}

.csp-photo-type {
    color: blue;
}

/* 表單和輸入框樣式 */
.csp-file-input-inline {
    display: inline-block;
    margin-right: 10px;
}

/* 可能的動態生成樣式類 */
.csp-width-100 {
    width: 100% !important;
}

.csp-height-auto {
    height: auto !important;
}

.csp-overflow-hidden {
    overflow: hidden !important;
}

.csp-overflow-visible {
    overflow: visible !important;
}

.csp-position-relative {
    position: relative !important;
}

.csp-position-absolute {
    position: absolute !important;
}

.csp-z-index-999 {
    z-index: 999 !important;
}

.csp-z-index-1000 {
    z-index: 1000 !important;
}

.csp-opacity-0 {
    opacity: 0 !important;
}

.csp-opacity-05 {
    opacity: 0.5 !important;
}

.csp-opacity-1 {
    opacity: 1 !important;
}

.csp-background-none {
    background: none !important;
}

.csp-visibility-hidden {
    visibility: hidden !important;
}

.csp-visibility-visible {
    visibility: visible !important;
}

.csp-pointer-events-none {
    pointer-events: none !important;
}

.csp-pointer-events-all {
    pointer-events: all !important;
}

/* 模態框和遮罩層樣式 */
.csp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}

/* jQuery 操作相關樣式 */
.csp-jquery-show {
    display: block !important;
}

.csp-jquery-hide {
    display: none !important;
}

.csp-jquery-fade-in {
    opacity: 1 !important;
    transition: opacity 0.3s ease-in-out;
}

.csp-jquery-fade-out {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out;
} 
