/* Main Trigger Button */


#dgModal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}

.dg-modal-container {
    background: #fff;
    width: 90%;
    max-width: 900px; /* Big rectangular box */
    height: 550px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    animation: dgSlideUp 0.3s ease-out;
}

@keyframes dgSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close Button Animation */
.dg-close-anim {
    position: absolute;
    right: 15px; top: 15px;
    z-index: 10;
    background: #eee; border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 20px; cursor: pointer;
    transition: all 0.3s ease;
}
.dg-close-anim:hover {
    transform: rotate(90deg);
    background: #ff4d4d; color: white;
}

/* Grid Layout */
.dg-grid {
    display: flex;
    height: 100%;
}

.dg-sec-1 {
    width: 50%;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
}

.dg-right-col {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.dg-sec-2 {
    border-bottom: 1px solid #eee;
    overflow: auto;
}

.dg-sec-3 {
    height: 40%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}

.dg-content-inner { padding: 30px; width: 100%; }

.dg-timer-display {
    font-size: 48px;
    font-weight: 800;
    color: #86c949;
}

/* Responsive */
@media (max-width: 768px) {
    .dg-grid { flex-direction: column; }
    .dg-sec-1, .dg-right-col { width: 100%; }
    .dg-modal-container { height: auto; max-height: 90vh; overflow-y: auto; }
}


.dg-trigger-btn {
display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: #dedede;
    color: #000000;
    font-size: 15px;
    font-weight: 600 !important;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease-in-out;
    cursor: pointer;
}

.dg-trigger-btn:hover {
    opacity: 0.9;
}

/* Modal Overlay */
#dgModal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* Modal Box */
.dg-modal-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.dg-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.dg-timer-display {
    font-size: 50px;
    font-weight: bold;
    color: #86c949;
    margin: 20px 0;
}