.print-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* استایل مدال */
.modal-print {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content-print {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
}

/* استایل فرم کنترل‌های چاپ */
.print-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group-print {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

select, input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group-print {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.checkbox-group-print input {
    margin-left: 10px;
}

.button-group-print {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button-group-print button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.preview-button {
    background-color: #2196F3;
    color: white;
}

.print-submit {
    background-color: #4CAF50;
    color: white;
}

.close-button {
    background-color: #f44336;
    color: white;
}

#previewMap {
    border: 1px solid #ddd;
    border-radius: 5px;
}
#previewContainer {
    display: none;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.preview-header {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.preview-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.preview-close {
    background-color: #f44336;
    color: white;
}

.preview-content {
    padding: 20px;
    position: relative;
    background-color: white;
}
.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #666;
}


.map-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.map-description {
    font-size: 14px;
    color: #666;
}

.map-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    gap: 10px;
}

.map-control {
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scale-bar {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: white;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* استایل برای مقیاس خطی */
.scale-line {
    width: 100px;
    height: 3px;
    background-color: black;
    margin-top: 5px;
}

/* استایل برای جهت‌نما */
.north-arrow {
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.north-arrow i {
    transform: rotate(0deg);
}

/* استایل برای راهنما */
.legend {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 200px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 3px;
}
#previewContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
}

.preview-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
}

.map-container {
    position: absolute;
    top: 63px;
    left: 5px;
    right: 5px;
    bottom: 25px;
}

#previewMap {
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.resizable-element {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-width: 100px;
    min-height: 50px;
    z-index: 1000;
}

.resizable-handle {
    width: 10px;
    height: 10px;
    background-color: #666;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

.legend {
    bottom: 20px;
    right: 20px;
}


.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    font-size: 48px;
    color: #4CAF50;
}

/* انیمیشن برای نمایش و مخفی کردن */
.animate__fadeIn {
    animation-duration: 0.5s;
}

.animate__fadeOut {
    animation-duration: 0.5s;
}

.preview-actions button {
    padding: 8px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.preview-print {
    background-color: #4CAF50;
    color: white;
}

.preview-close {
    background-color: #f44336;
    color: white;
}

.preview-actions button:hover {
    opacity: 0.8;
}

/* استایل برای کادر راهنمای کلیدهای میانبر */

.shortcut-tooltip {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 61, 58, 0.7);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
}
.north-arrow{
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 62%;
    padding: 1px;
    color: #044e5e;
}
#news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: rgb(2, 88, 88, 0.7);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    z-index: 999;
    display: none;
}
.news-content {
    padding-left: 100%;
    animation: ticker 60s linear(-0.44 -19.29%, 1 100%) infinite;
    white-space: nowrap;
    transform: translateX(100%);
}



.news-content:hover {
    animation-play-state: paused;
}

.news-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 14px;
    line-height: 40px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(10, 201, 201, 0.52);
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.news-item .fas {
    margin-left: 10px;
    color: #ff4500;
    text-shadow: 1px 1px 2px rgb(132, 21, 5);
}

.news-item a {
    color: #d0ffff;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.alert-details {
    position: fixed;
    top: 6%;
    left: 65px;
    background-color: rgba(7, 104, 103, 0.63);
    color: #eaffff;
    padding: 15px;
    border-radius: 5px;
    max-width: 210px;
    display: none;
    font-size: 12px;
    z-index: 1000;
    text-wrap: auto;

}

.severity-high {color: #ff4500;}
.severity-medium { color: #FFA500; }
.severity-low { color: #FFFF00; }