/* TNC PDF Preview Plugin Styles */

.tnc-pdf-preview-container {
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tnc-upload-area {
	border-radius: 20px;
	background:rgba(255,255,255,0.9);
    overflow: hidden;
    transition: all 0.3s ease;
	max-width: 780px;
    width: 100%;
	max-width: 780px;
    width: 100%;
}

.tnc-pdf-preview-container {
	max-width: 100% !important;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tnc-upload-zone {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed #4A5F66;
    margin: 20px;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.tnc-upload-zone:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
}

.tnc-upload-zone.dragover {
    border-color: #00a32a;
    background: #f0fff0;
    transform: scale(1.02);
}

.tnc-upload-zone.uploading {
    border-color: #f0b849;
    background: #fffbf0;
}

.tnc-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.tnc-upload-text {
    color:#0F2D35;
    text-align: center;
    font-family: Inter;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.tnc-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tnc-upload-button {
    border-radius: 30px;
    background:#0055D4;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color:#FFF;
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 150%; 
    position: relative;
    z-index: 2;
    pointer-events: none;
	border:none;
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: auto;
}

.tnc-upload-button:hover {
    background:#0041a8;
}

.tnc-file-info {
	 color:#4A5F66;
	text-align: center;
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 150%; 
	padding-top:14px !important;
}

p.tnc-upload-text {
    padding-bottom: 28px !important;
	
}

.tnc-status-message {
   padding-bottom:30px;
}

.tnc-status-message.success {
    color: #10B981;
	text-align: center;
	font-family: Inter;
	font-size: 18px !important;
	font-style: normal;
	font-weight: 500;
	line-height: 160%; 
}

.tnc-status-message.error {
    color: #d63638;
	text-align: center;
	font-family: Inter;
	font-size: 18px !important;
	font-style: normal;
	font-weight: 500;
	line-height: 160%; 
}

.tnc-status-message.processing {
    color: #8AB1EB;
	text-align: center;
	font-family: Inter;
	font-size: 18px !important;
	font-style: normal;
	font-weight: 500;
	line-height: 160%; 
}

.tnc-progress-bar {
    max-width:500px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tnc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #005a8b);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.tnc-progress-fill.complete {
    width: 100%;
    background: linear-gradient(90deg, #00a32a, #008a20);
}

.tnc-preview-area {
    padding: 19px;
}

.tnc-file-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 25px;
}

.tnc-file-name {
    color:#4A5F66;
    text-align: center;
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 150%; /* 24px */
	margin-right:2px;
}

.tnc-file-size {
	color:#4A5F66;
	text-align: center;
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 150%; /* 24px */
}

.tnc-preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tnc-preview-button {
    border-radius: 30px;
    background:#0055D4;
    transition: all 0.3s ease;
	cursor:pointer;
    display:flex;
	align-items:center;
	color:#FFF;
	/* Paragraph/16/Semibold */
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 150%; /* 24px */
	border:none;
	gap:10px;
	padding:12px 24px;
}

.tnc-preview-button:hover {
	background:#0041a8;
}

.tnc-upload-another {
    border-radius: 30px;
    border: 1px solid  #B0CAF2;
    cursor: pointer;
    transition: all 0.3s ease;
	display:flex;
	align-items:center;
	gap:10px;
	padding:12px 24px;
	background-color:transparent;
	color:#0055D4;
	/* Paragraph/16/Semibold */
	font-family: "DM Sans";
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 150%; /* 24px */
}

.tnc-upload-another:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Modal Styles */
.tnc-pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tnc-pdf-modal.show {
    opacity: 1;
    visibility: visible;
}

.tnc-modal-content {
    width: 95%;
    height: 95%;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tnc-pdf-modal.show .tnc-modal-content {
    transform: scale(1);
}

.tnc-modal-header {
    display: flex;
    justify-content:flex-end;
    align-items: center;
}

.tnc-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.tnc-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tnc-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tnc-modal-iframe {
    flex: 1;
    border: none;
    background: white;
}

.tnc-modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

.tnc-loading-spinner {
    width: 60px;
    height: 60px;
    animation: tnc-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes tnc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tnc-upload-zone {
        padding: 30px 15px;
        margin: 15px;
    }
    
    .tnc-upload-icon {
        font-size: 36px;
    }
  
    .tnc-file-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tnc-preview-actions {
        flex-direction: column;
    }
    
    .tnc-preview-button,
    .tnc-upload-another {
        width: 100%;
    }
    
    .tnc-modal-content {
        width: 98%;
        height: 98%;
    }
    
    .tnc-modal-header {
        padding: 12px 15px;
    }
    
    .tnc-modal-title {
        font-size: 16px;
    }
}

/* Animation for upload success */
@keyframes tnc-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tnc-preview-area.success-animation {
    animation: tnc-success-pulse 0.6s ease-in-out;
}

/* Focus styles for accessibility */
.tnc-upload-button:focus,
.tnc-preview-button:focus,
.tnc-upload-another:focus,
.tnc-modal-close:focus {
    outline: 2px solid #005a8b;
    outline-offset: 2px;
}

/**  New Style start **/

.tnc-status-area {
	position:absolute;
	top: 0;
    width: 100%;
	height:100%;
	z-index:999;
	left:0;
	right:0;
	bottom:0;
	margin:auto;
} 

.tnc-upload-area {
   position:relative;
}


.tnc-preview-area {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.tnc-upload-zone {
    padding-top: 98px;
    padding-bottom: 90px;
}

.tnc-preview-area-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
	z-index:9999;
}

.tnc-status-area-inner {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
	border-radius: 16px;
	border: 2px dashed  #0055D4;
	background: #fff;
	
}

.tnc-status-area {
	padding:19px;
}

.tnc-preview-area-inner {
    border-radius: 16px;
    border: 2px dashed  #10B981;
    background:#FFF !important;
} 


.tnc-preview-success-title-wrap {
	color:#10B981;
	text-align: center;
	font-family: Inter;
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 150%;
	
}

.tnc-preview-success-title {
    padding-bottom: 20px;
} 
@media only screen and (max-width: 769px) {
	.tnc-status-area {
       padding:14px;
	}
	
	.tnc-preview-area {
		padding:14px;
	}
} 

/* .tnc-loading-spinner {
    animation: tnc-rotate 1s linear infinite;
}
@keyframes tnc-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
 */

.tnc-pdf-preview-container {
    position: relative; /* important for centering */
}

.tnc-loading-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85); /* overlay with opacity */
    z-index: 99;
    display: none;
}

.tnc-loading-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.tnc-loading-spinner {
    display: block;
    margin: 0 auto 10px;
    animation: tnc-rotate 1s linear infinite;
}

@keyframes tnc-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


h3.tnc-modal-title {
	display:none;
}

/**  New Style End **/


