/* Time Alarm Refsam - Frontend Styles */

/* Datetime Display - Full Width Single Line */
.tars-datetime {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    direction: rtl;
    box-sizing: border-box;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.tars-date {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tars-separator {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.7;
}

.tars-time {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    direction: ltr;
}

/* Popup Overlay */
.tars-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tars-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Card */
.tars-popup-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.tars-popup-overlay.active .tars-popup-card {
    transform: scale(1);
}

.tars-popup-card.shadow {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tars-popup-card.no-shadow {
    box-shadow: none;
    border: 2px solid #e0e0e0;
}

/* Popup Image Container */
.tars-popup-image-container {
    width: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tars-popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Popup Content */
.tars-popup-content {
    padding: 25px 30px;
    text-align: center;
}

.tars-popup-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Popup Close Button */
.tars-popup-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: #ff5252;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.tars-popup-close:hover {
    background: #d32f2f;
}

/* Popup Link Button */
.tars-popup-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tars-popup-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .tars-datetime {
        gap: 5px;
        padding: 8px 12px;
    }
    
    .tars-date, .tars-time {
        font-size: 13px;
    }
    
    .tars-popup-card {
        width: 95%;
        margin: 10px;
    }
    
    .tars-popup-content {
        padding: 20px;
    }
    
    .tars-popup-text {
        font-size: 14px;
    }
}
