/* assets/css/print-settings.css */
.header-footer-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-footer-modal body {
    background-color: #f0f2f5;
    padding: 20px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.header-footer-modal .container {
    max-width: 800px;
    width: 100%;
}

.header-footer-modal .actions {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.header-footer-modal button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
}

.header-footer-modal .btn-settings {
    background-color: #e67e22;
    color: white;
}

.header-footer-modal .btn-settings:hover {
    background-color: #d35400;
}

/* Settings Modal */
.header-footer-modal .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.header-footer-modal .modal-content {
    background-color: white;
    padding: 15px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.header-footer-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.header-footer-modal .modal-title {
    font-size: 20px;
    color: #1a5f7a;
    font-weight: 600;
}

.header-footer-modal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.header-footer-modal .close-modal:hover {
    color: #34495e;
}

/* .header-footer-modal .settings-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
} */

.header-footer-modal .settings-section h3 {
    color: #1a5f7a;
    margin-bottom: 15px;
    font-size: 18px;
}

.header-footer-modal .form-group {
    margin-bottom: 15px;
}

.header-footer-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.header-footer-modal input, 
.header-footer-modal select, 
.header-footer-modal textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border 0.3s;
}

.header-footer-modal input:focus, 
.header-footer-modal select:focus, 
.header-footer-modal textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.header-footer-modal .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.header-footer-modal .checkbox-group input {
    width: auto;
}

.header-footer-modal .header-footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.header-footer-modal .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.header-footer-modal .btn-primary {
    background-color: #3498db;
    color: white;
}

.header-footer-modal .btn-primary:hover {
    background-color: #2980b9;
}

.header-footer-modal .btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.header-footer-modal .btn-secondary:hover {
    background-color: #27ae60;
}

.header-footer-modal .btn-preview {
    background-color: #9b59b6;
    color: white;
}
.header-footer-modal .btn-preview:hover {
    background-color: #8e44ad;
}

/* Cover Page Settings Modal Styles */
.cover-page-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cover-page-modal body {
    background-color: #f0f2f5;
    padding: 20px;
    color: #333;
}

.cover-page-modal .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

.cover-page-modal .title-top h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    color: #1a5f7a;
}

.cover-page-modal .input-form {
    background-color: white;
    padding: 8px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.cover-page-modal .form-section {
    margin-bottom: 25px;
}

.cover-page-modal .form-section h2 {
    color: #1a5f7a;
    margin-bottom: 15px;
    font-size: 16px;
}

.cover-page-modal .form-group {
    margin-bottom: 15px;
}

.cover-page-modal div .x-level{
    height: 35px;
}

.cover-page-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.cover-page-modal input, 
.cover-page-modal select, 
.cover-page-modal textarea {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.cover-page-modal input:focus, 
.cover-page-modal select:focus, 
.cover-page-modal textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.cover-page-modal .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cover-page-modal .checkbox-group input {
    width: auto;
}

.cover-page-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Logo upload row styling */
.cover-page-modal .logo-upload-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: end;
}

.cover-page-modal .logo-upload-section {
    display: flex;
    flex-direction: column;
}

.cover-page-modal .logo-checkbox-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cover-page-modal .preview-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cover-page-modal .preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0px 8px 20px;
    border-bottom: 1px solid #eaeaea;
}

.cover-page-modal .preview-title {
    font-size: 20px;
    color: #1a5f7a;
    font-weight: 600;
}

.cover-page-modal .actions {
    display: flex;
    gap: 10px;
}

.cover-page-modal button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 13px;
}

.cover-page-modal .btn-primary {
    background-color: #3498db;
    color: white;
}

.cover-page-modal .btn-primary:hover {
    background-color: #2980b9;
}

.cover-page-modal .btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.cover-page-modal .btn-secondary:hover {
    background-color: #27ae60;
}

.cover-page-modal .btn-print {
    background-color: #9b59b6;
    color: white;
}

.cover-page-modal .btn-print:hover {
    background-color: #8e44ad;
}


.cover-page-modal .btn-warning {
    background-color: #e67e22;
    color: white;
}

.cover-page-modal .btn-warning:hover {
    background-color: #d35400;
}

.cover-page-modal .exam-cover-preview {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: auto;
}

/* Preview Styles */
.cover-page-modal .exam-cover {
    width: 18cm;
    height: 31.45cm;
    background-color: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 1.5cm;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.cover-page-modal .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.cover-page-modal .logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a5f7a, #159895);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Rectangular logo style */
.cover-page-modal .logo.rectangular {
    border-radius: 0;
}

/* Horizontal logo style */
.cover-page-modal .logo.horizontal {
    width: 90%;
    border-radius: 0;
}

.cover-page-modal .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-page-modal .logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a5f7a, #159895);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.cover-page-modal .school-name {
    text-align: center;
}

.cover-page-modal .school-name h1 {
    color: #1a5f7a;
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.cover-page-modal .school-name p {
    color: #7f8c8d;
    font-size: 18px;
    font-style: italic;
}

/* Student Information Section - Reduced font size */
.cover-page-modal .student-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.cover-page-modal .info-group {
    margin-bottom: 15px;
}

.cover-page-modal .info-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px; /* Reduced from 15px */
}

.cover-page-modal .info-value {
    padding: 8px 12px; /* Reduced padding */
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    font-size: 14px; /* Reduced from 16px */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Exam Details Section - Reduced padding */
.cover-page-modal .exam-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Reduced gap */
    margin-bottom: 20px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 10px; /* Reduced padding */
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.cover-page-modal .detail-item {
    text-align: center;
    padding: 8px; /* Reduced padding */
}

.cover-page-modal .detail-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px; /* Reduced from 15px */
    margin-bottom: 5px; /* Reduced margin */
}

.cover-page-modal .detail-value {
    font-size: 15px; /* Reduced from 17px */
    color: #34495e;
    font-weight: 500;
}

/* Instructions Section - Added border */
.cover-page-modal .instructions {
    margin-top: 20px;
    flex-grow: 1;
    border: 1px solid #e0e0e0; /* Added border */
    border-radius: 8px;
    padding: 20px; /* Added padding inside border */
    background-color: #fdfdfd;
}

.cover-page-modal .instructions h2 {
    color: #1a5f7a;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.cover-page-modal .instructions ol {
    padding-left: 25px;
}

.cover-page-modal .instructions li {
    margin-bottom: 10px; /* Slightly reduced */
    line-height: 1.5; /* Slightly reduced */
    color: #34495e;
    font-size: 14px; /* Reduced from 15px */
}

/* Decorative Elements */
.cover-page-modal .corner-decoration {
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #3498db, #1a5f7a);
    border-radius: 50%;
    opacity: 0.08;
}

.cover-page-modal .top-right {
    top: -70px;
    right: -70px;
}

.cover-page-modal .bottom-left {
    bottom: -70px;
    left: -70px;
}

.cover-page-modal .watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(0, 0, 0, 0.1);
    font-size: 12px;
    transform: rotate(-15deg);
}

/* File upload styling */
.cover-page-modal .file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cover-page-modal .file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cover-page-modal .file-upload-label {
    display: block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cover-page-modal .file-upload-label:hover {
    background-color: #e9ecef;
    border-color: #3498db;
}

.cover-page-modal .file-name {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Print Styles */
@media print {
    .cover-page-modal body {
        background: white;
        padding: 0;
    }
    
    .cover-page-modal .exam-cover {
        box-shadow: none;
        width: 100%;
        height: auto;
        page-break-after: always;
    }
}

/* Responsive Design */
@media (max-width: 21cm) {
    .cover-page-modal .exam-cover {
        width: 100%;
        height: auto;
        min-height: 29.7cm;
    }
}

@media (max-width: 768px) {
    .cover-page-modal .student-info, 
    .cover-page-modal .exam-details {
        grid-template-columns: 1fr;
    }
    
    .cover-page-modal .exam-cover {
        padding: 1.5cm;
    }
    
    .cover-page-modal .logo-upload-row {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay */
.cover-page-modal .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cover-page-modal .modal-content {
    background-color: white;
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
    width: 95%;
    max-width: 1280px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.cover-page-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.cover-page-modal .modal-title {
    font-size: 24px;
    color: #1a5f7a;
    font-weight: 600;
}

.cover-page-modal .close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    background: #cecece;
}

.cover-page-modal .close-modal:hover {
    color: #34495e;
}




