﻿html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f2f1;
    overflow: hidden;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centered vertically */
    align-items: center;
    height: 90vh;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #323130;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 10px;
}

.header-icon {
    width: 50px;
    margin-right: 10px;
}

.help-icon {
    width: 24px;
    cursor: pointer;
    margin-left: auto;
}

.instructions {
    margin-bottom: 10px;
    font-size: 14px;
    color: #605e5c;
    text-align: center;
}

.ms-Dropdown-container {
    width: 100%;
    margin-bottom: 5px;
}

.ms-Button {
    min-width: 30px !important;
}

.ms-Dropdown {
    width: 100%;
    padding: 5px;
    border-radius: 4px;
    font-size: 16px;
    border: 1px solid #0078d4;
    background-color: #ffffff;
}

.ms-TextField {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}



.char-count {
    font-size: 12px;
    color: #605e5c;
    text-align: right;
    margin-top: 5px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px; /* Space between buttons */
    margin-top: 0px;
}

#addButton, #downloadPdfButton {
    flex: 1;
    text-align: center;
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    #addButton:hover, #downloadPdfButton:hover {
        background-color: #005a9e;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    #addButton i, #downloadPdfButton i {
        margin-right: 5px; /* Space between icon and text */
    }

.spinner-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.label-and-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.ms-TextField {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.ms-TextField-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    font-size: 16px;
    resize: none;
    overflow-y: auto;
    direction: rtl;
    height: 200px; /* Fixed height */
}

.font-adjust-buttons {
    display: flex;
}

.ms-Button--icon.small-icon {
    padding: 0;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    font-size: 12px;
    line-height: 20px;
    color: #0078d4;
    background-color: transparent;
    border: none;
}

    .ms-Button--icon.small-icon:hover {
        background-color: #e5e5e5;
        color: #005a9e;
    }
