* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #006633;
    --accent-color: #ff9900;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

body.en {
    direction: ltr;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-right: 4px solid var(--primary-color);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-right-color: var(--success-color);
}

.notification.error {
    border-right-color: var(--error-color);
}

.notification.warning {
    border-right-color: var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* QR Section */
.qr-section {
    display: none;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    padding: 30px 20px;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-left, .logo-right {
    flex: 0 0 auto;
}

.logo {
    height: 80px;
    width: auto;
    max-width: 120px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ministry-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.company-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin: 10px 0;
    font-weight: 800;
}

.header-title p {
    color: var(--text-light);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.header-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.header-footer p {
    margin: 0;
}

.header-footer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #002244;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #005522;
}

.btn-success {
    background: var(--success-color);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
}

.btn-success:hover {
    background: #218838;
}

/* Main Content */
.main-content {
    padding: 40px 20px;
}

.main-content .container {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

/* Announcement Section */
.announcement-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.announcement-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
}

.announcement-card {
    background: var(--accent-color);
    padding: 24px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(26, 14, 12, 0.18), 0 2px 8px rgba(26, 14, 12, 0.1);
}

.announcement-card:nth-of-type(1) {
    background: var(--accent-color);
}

.announcement-card:nth-of-type(1) h3,
.announcement-card:nth-of-type(1) li {
    color: white;
}

.announcement-card:nth-of-type(2) {
    background: #f8f9fa;
}

.announcement-card:nth-of-type(2) h3,
.announcement-card:nth-of-type(2) li {
    color: var(--primary-color);
}

.announcement-card:nth-of-type(3) {
    background: #f8f9fa;
}

.announcement-card:nth-of-type(3) h3,
.announcement-card:nth-of-type(3) li {
    color: var(--primary-color);
}

.announcement-card:nth-of-type(4) {
    background: #f8f9fa;
}

.announcement-card:nth-of-type(4) h3,
.announcement-card:nth-of-type(4) p {
    color: var(--primary-color);
}

.announcement-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.steps-list, .requirements-list, .benefits-list {
    list-style: decimal;
    padding-right: 30px;
}

.steps-list li, .requirements-list li, .benefits-list li {
    padding: 8px 0;
    color: white;
    font-size: 15px;
    line-height: 1.7;
}

.announcement-card:nth-of-type(2) .requirements-list li,
.announcement-card:nth-of-type(4) p {
    color: var(--text-dark);
}

.steps-list li:before, .requirements-list li:before, .benefits-list li:before {
    content: "";
}

.announcement-text {
    text-align: right;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 15px 0;
    padding: 10px;
}

.announcement-text.en {
    text-align: left;
    direction: ltr;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Form Section */
.form-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 0;
}

.form-section-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0;
}

.optional-text {
    color: var(--text-light);
    font-size: 14px;
    margin-right: auto;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* File Upload */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.file-upload-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.required {
    color: #dc3545;
    font-weight: bold;
    font-size: 16px;
}

.file-description {
    font-size: 12px;
    color: var(--text-light);
    margin: 3px 0 8px 0;
}

.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    min-height: 60px;
}

.file-input-wrapper:hover {
    border-color: var(--primary-color);
    background: #e8f4f8;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
}

.file-name.uploaded {
    color: var(--success-color);
    font-weight: 500;
}

.file-name.uploaded:before {
    content: "✓ ";
    font-weight: bold;
}

/* Experience Section */
.experience-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.experience-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 14px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.btn-add-experience {
    background: none;
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-experience:hover {
    background: rgba(0, 51, 102, 0.1);
}

/* Photo Upload Area */
.photo-upload-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.photo-upload-area input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.photo-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0f7ff;
    border: 2px dashed #003366;
    border-radius: 10px;
    padding: 14px 22px;
    cursor: pointer;
    font-size: 15px;
    color: #003366;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.photo-upload-label:hover {
    background: #dbeafe;
    border-color: #1d4ed8;
}

.photo-upload-icon {
    font-size: 22px;
    line-height: 1;
}

.photo-preview-img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #003366;
    box-shadow: 0 4px 12px rgba(0,51,102,.2);
    margin-top: 6px;
}

/* Form Actions */
.form-actions {
    margin-top: 40px;
    text-align: center;
}

.auto-save-note {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 4px;
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.btn-submit:hover {
    background: #005522;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer p.en {
    direction: ltr;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content .container {
        grid-template-columns: 1fr;
    }

    .announcement-section {
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .header {
        position: static;
        padding: 16px 10px;
    }

    .header-container {
        gap: 16px;
    }

    .header-logos {
        display: grid;
        grid-template-columns: minmax(96px, 1fr) minmax(170px, 1.8fr) minmax(96px, 1fr);
        align-items: center;
        gap: 8px;
    }

    .logo-left,
    .logo-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .logo-section {
        flex-direction: column;
        gap: 6px;
        justify-content: center;
    }

    .logo {
        height: 52px;
        max-width: 82px;
    }

    .ministry-name,
    .company-name {
        font-size: 10px;
        line-height: 1.25;
    }

    .ministry-name {
        white-space: nowrap;
        font-size: 9px;
        line-height: 1.2;
    }

    .logo-left .logo {
        height: 64px;
        max-width: 98px;
    }

    .header-title {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .header-title h1 {
        font-size: 18px;
        line-height: 1.35;
        margin: 0 0 6px 0;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    .header-title p {
        font-size: 11px;
        line-height: 1.45;
        margin: 0;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    .header-footer {
        font-size: 12px;
        padding-top: 12px;
    }

    .main-content {
        padding: 20px 0;
    }

    .main-content .container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .announcement-section,
    .form-section {
        padding: 16px;
        border-radius: 10px;
    }

    .announcement-card {
        margin: 12px 0;
        padding: 14px;
    }

    .announcement-text {
        padding: 6px;
        margin: 10px 0;
        font-size: 14px;
    }

    .form-section-block {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .section-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
        flex-wrap: nowrap;
    }

    .section-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 16px;
        line-height: 1.5;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .experience-item {
        padding: 14px;
        margin-bottom: 12px;
    }

    .experience-header {
        gap: 10px;
        flex-wrap: wrap;
    }

    .attachments-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .file-input-wrapper {
        padding: 14px;
        min-height: 52px;
    }

    .btn,
    .btn-submit,
    .btn-add-experience {
        min-height: 44px;
        font-size: 14px;
    }

    .btn-submit {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .qr-actions,
    .email-actions {
        flex-direction: column;
    }

    .qr-actions .btn,
    .email-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .qr-section,
    .email-section,
    .header-content .email-section,
    .form-actions,
    .notifications {
        display: none;
    }

    body {
        background: white;
    }

    .form-section,
    .announcement-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-section,
.form-section {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.text-warning {
    color: var(--warning-color);
}

/* Image to PDF Converter Styles */
.image-to-pdf-section {
    background: white;
    margin: 40px 20px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: fadeIn 0.6s ease-out;
}

.image-to-pdf-container {
    max-width: 900px;
    margin: 0 auto;
}

.image-to-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.image-to-pdf-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
    flex: 1;
}

.btn-close-tool {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-close-tool:hover {
    background: #5a6268;
}

.image-to-pdf-content {
    display: grid;
    gap: 30px;
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f0f7ff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: #e8f4fb;
    border-color: #002244;
}

.upload-area.dragover {
    background: #dceaf5;
    border-color: #002244;
    box-shadow: 0 0 20px rgba(0, 51, 102, 0.2);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-area h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin: 10px 0;
}

.upload-area p {
    color: var(--text-light);
    font-size: 14px;
    margin: 10px 0 20px 0;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-button:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

/* Image Preview */
.image-preview-container {
    margin-top: 20px;
}

.image-preview-container h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.images-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.image-item {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: move;
    background: white;
}

.image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.image-item .image-size {
    font-size: 11px;
    color: var(--text-light);
    padding: 5px;
    text-align: center;
    background: #f8f9fa;
}

.image-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.image-item .remove-btn:hover {
    background: #c82333;
    transform: scale(1.2);
}

.image-item .drag-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 51, 102, 0.8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: grab;
}

.image-item .drag-handle:active {
    cursor: grabbing;
}

/* Conversion Options */
.conversion-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.conversion-options h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 5px;
}

.option-group select,
.option-group input {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

.options-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

.options-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Conversion Actions */
.conversion-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.conversion-actions .btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversion-actions .btn-submit {
    background: var(--secondary-color);
    color: white;
    width: auto;
    max-width: none;
}

.conversion-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

/* Progress Container */
.progress-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.progress-container p {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

#progressText {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 10px;
}

/* Floating Action Button */
.fab-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 500;
}

.fab-button:hover {
    background: #002244;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.4);
}

.fab-button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .fab-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 11px;
    }

    .image-to-pdf-section {
        margin: 14px;
        padding: 14px;
    }

    .image-to-pdf-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .image-to-pdf-header h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .upload-area {
        padding: 16px;
    }

    .upload-area h3 {
        font-size: 15px;
    }

    .upload-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .images-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        max-height: 260px;
    }

    .options-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .conversion-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        padding: 12px 8px;
    }

    .logo {
        height: 48px;
        max-width: 78px;
    }

    .header-logos {
        grid-template-columns: minmax(82px, 0.95fr) minmax(150px, 1.9fr) minmax(82px, 0.95fr);
        gap: 6px;
    }

    .logo {
        height: 44px;
        max-width: 72px;
    }

    .ministry-name,
    .company-name {
        font-size: 9px;
        line-height: 1.2;
    }

    .ministry-name {
        white-space: nowrap;
        font-size: 8px;
        line-height: 1.15;
    }

    .logo-left .logo {
        height: 54px;
        max-width: 84px;
    }

    .header-title h1 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .header-title p {
        font-size: 10px;
        line-height: 1.4;
    }

    .main-content {
        padding: 14px 0;
    }

    .announcement-section,
    .form-section {
        padding: 12px;
    }

    .announcement-card {
        padding: 12px;
        border-radius: 10px;
    }

    .section-header h2 {
        font-size: 15px;
    }

    .section-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 9px;
        font-size: 13px;
    }

    .btn-submit {
        font-size: 14px;
        padding: 11px 12px;
    }

    .footer {
        padding: 20px 12px;
        margin-top: 20px;
    }

    .footer p {
        font-size: 12px;
        line-height: 1.5;
    }

    .image-to-pdf-section {
        margin: 10px;
        padding: 10px;
    }

    .upload-area {
        padding: 12px;
    }

    .upload-area p {
        font-size: 12px;
    }
}

/* Job Description Modal Styles */
.job-description-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.job-description-container {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #4caf50;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.job-description-header {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    padding: 20px;
    border-radius: 9px 9px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #2e7d32;
}

.job-description-header h3 {
    color: white;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.job-description-content {
    padding: 30px 20px;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    min-height: 120px;
}

.job-description-content p {
    color: #1b5e20;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
    text-align: justify;
}

.job-description-footer {
    padding: 20px;
    background: #f1f8e9;
    border-top: 2px solid #81c784;
    border-radius: 0 0 9px 9px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.job-description-footer .btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.job-description-footer .btn-primary:hover {
    background: linear-gradient(135deg, #388e3c 0%, #1b5e20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.job-description-footer .btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .job-description-container {
        max-width: 95%;
        max-height: 70vh;
    }

    .job-description-header h3 {
        font-size: 18px;
    }

    .job-description-content {
        padding: 20px 15px;
    }

    .job-description-content p {
        font-size: 14px;
    }

    .job-description-footer .btn-primary {
        font-size: 14px;
        padding: 10px 25px;
    }
}
