﻿/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

:root {
    --modal-header-bg-color: #FE28A2;
    --modal-footer-bg-color: #007bff;
    --modal-padding: 1rem;
    --modal-border-color: #dee2e6;
    --footer-padding: 0.5rem;
}

/* Animation Styles */
@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

.modal {
    position: fixed;
    top: 0;
    animation: animatetop 0.5s ease-out; /* Apply the animation 
    left: 50%;
    transform: translateX(-50%); */
}

.modal-dialog {
    overflow-x: hidden; /* Hides any content that overflows vertically */
}

.modal-body {
    overflow-y: auto; /* Ensures scrollability for modal body content */
    max-height: calc(100vh - 200px); /* Adjust the value based on your header/footer height */
}


    /* Customizing the scrollbar width and thumb for webkit browsers */
    .modal-body::-webkit-scrollbar {
        width: 25px; /* Set the scrollbar width to 30px */
    }

    .modal-body::-webkit-scrollbar-thumb {
        background-color: #808080; /* Customize the thumb color */
        border-radius: 10px; /* Optional: add border-radius to the scrollbar thumb */
        border: 6px solid transparent; /* Creates padding around the thumb */
        background-clip: content-box; /* Ensures the padding doesn't affect the thumb's color */
    }

    .modal-body::-webkit-scrollbar-track {
        background: #f0f0f0; /* Customize the track color */
    }

/* Button Styles */    
.tsm-get-started {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 4px;
}

    .tsm-get-started:hover {
        background-color: #0056b3;
    }

.center-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    bottom: 44px;
    justify-content: center;
}

    .center-button button {
        padding: 8px 12px;
        background-color: #16a085;
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        outline: none;
        border-radius: 5px;
        font-size: 16px;
        white-space: nowrap;
    }

        .center-button button:hover {
            background-color: #1abc9c;
        }

        .center-button button:active {
            transform: translateY(2px);
        }

/* Navigation Styles */  
.navbar {
    background-color: #454cb5;
    overflow: hidden;
    font-family: sans-serif;
}

.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

    .nav-menu > li {
        color: white;
        padding: 14px 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .nav-menu .dropdown {
        position: relative;
    }

    .nav-menu a {
        color: white;
        text-decoration: none;
        display: block;
    }

        .nav-menu a:hover, .dropdown:hover .dropbtn {
            background-color: #555;
        }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #ddd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Footer Styles */   
.tsm-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tsm-button-group {
    display: flex;
    justify-content: center;
    flex: 1;
}

/* Individual buttons */
.tsm-btn {
    flex: 1; /* Allows each button to grow and take up equal space */
    padding: .25rem .5rem; /* Adjusts button padding as needed */
    font-size: .875rem; /* Adjusts button font-size as needed */
    text-align: center; /* Centers the text within each button */
}

/* Form Styles */  
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 2px !important;
}

.label {
    flex: 0 0 25%;
    margin-right: 5%;
}

/* Resize Handle Styles */
.resize-handle {
    position: absolute;
    z-index: 10;
}

    .resize-handle.resize-right {
        right: 0;
        top: 0; /* deeja added keep for test top: 50%; */
        width: 10px;
        height: 100%;
        cursor: ew-resize;
    }

    .resize-handle.resize-bottom {
        bottom: 0;
        left: 0; /* left: 50%; */
        width: 100%;
        height: 10px;
        cursor: ns-resize;
    }

    .resize-handle.resize-right-bottom {
        right: 0;
        bottom: 0;
        width: 10px; /* width: 20px; */
        height: 10px; /* height: 20px; */
        cursor: nwse-resize;
    }

/* Additional Styles */   
.container {
    text-align: center;
    margin-top: 20%;
}

/* Canvas Container Styles */
.tsm-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%; /* Full viewport width */
    height: calc(100vh - 50px); /* Full height minus offset */
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Tool Menu Styles */
.tsm-tool-menu {
    width: 100%; /* Full width */
    position: fixed; /* Fixed position */
    bottom: 0; /* Align to bottom */
    left: 0; /* Align to left */
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 5px; /* Padding for touch targets */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    z-index: 10; /* Above other content */
    display: flex; /* Horizontal alignment */
    justify-content: space-around; /* Evenly spaced items */
}

/* Close Button Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0066cc; /* Darker than #007bff */
    color: #ffffff;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    height: 45px;
    font-size: 16px;
}
    .modal-header .close {
        background: none;
        border: none;
        font-size: 28px; /* Increase size for visibility */
        cursor: pointer;
        color: #ffffff; /* White for close button */
        padding: 0 5px 5px; /* Center the close button with equal padding */
        line-height: 45px; /* Aligns the close button vertically */
    }

        .modal-header .close:hover {
            background-color: rgba(255, 255, 255, 0.3); /* Subtle interaction cue */
        }

/* Responsive Styles */
@media (max-width: 576px) {
    .tsm-dialog .modal-header {
        font-size: 12px;
        min-height: 35px;
        max-height: 45px;
    }
}

@media (max-width: 768px) {
    .canvas-container,
    .tsm-canvas-container {
        flex-direction: column; /* Stack children vertically on small screens */
        padding: 10px; /* Add padding to ensure content is not flush to the edges */
        margin-bottom: 60px; /* Add margin to give space for a fixed toolbar at the bottom */
    }

    .tsm-dialog .modal-header {
        font-size: 14px;
        min-height: 45px;
        max-height: 50px;
    }

    .tsm-tool-menu {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .tsm-dialog .modal-header {
        font-size: 15px;
        min-height: 45px;
        max-height: 55px;
    }
}

@media (min-width: 1200px) {
    .tsm-dialog .modal-header {
        font-size: 18px;
        min-height: 50px;
        max-height: 60px;
    }
}