﻿/* General styles */

body {
    background-color: #F5F5F5;
}

h2 {
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 0.3rem;
        font-weight: unset;
        color: #555;
    }

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 2vh;
}

.form-control-two {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom:1vh;
}


.form-check {
    text-align: left;
    padding-bottom: 10px;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    padding-top: 0.2rem;
    font-size: 0.8rem;
}

.login-button {
    width: 100%;
    padding: 0.5rem;
    background-color: #ff6900;
    border: none;
    border-radius: 4px;
    color: orange;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 4ch;
}

    .login-button:hover {
        background-color: #ff6900;
    }

.version-info {
    padding-top: 30px;
    color: #999;
    font-size: 0.9rem;
}





.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height:5vh;
    padding: 0px 20px 0px 5px;
    background-color: #1a1a1a;
    color: white;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                0 4px 20px rgba(210, 99, 40, 0.15);
    animation: app-bar-glow 3s ease-in-out infinite;
}

/* App Bar bottom glow animation */
@keyframes app-bar-glow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                    0 4px 15px rgba(210, 99, 40, 0.1);
    }
    50% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
                    0 4px 25px rgba(210, 99, 40, 0.25);
    }
}

.dashboard-left-section {
    display: flex;
    align-items: center;
}

.dashboard-icon {
    width: 2rem;
    height: auto;
    margin-right: 0px;
}

.squiggly-cropped {
    width: 70px;
    height: 30px;
    align-self: end;
    filter: drop-shadow(0 0 8px rgba(210, 99, 40, 0.4));
    animation: squiggly-glow 3s ease-in-out infinite;
}

@keyframes squiggly-glow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(210, 99, 40, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(210, 99, 40, 0.5));
    }
}

.dashboard-title {
    font-size: 16px;
    text-shadow: 0 0 10px rgba(210, 99, 40, 0.3);
    letter-spacing: 0.5px;
}

.dashboard-right-section {
    display: flex;
    align-items: center;
}

.user-icon,
.notification-icon {
    width:4vh;
    height: 4vh;
    margin-right:10px;
    margin-top:0;
    cursor: pointer;
    border: 2px solid rgba(210, 99, 40, 0.5);
    border-radius: 50%;
    padding: 0px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(210, 99, 40, 0.2);
}

.user-icon:hover,
.notification-icon:hover {
    border-color: rgba(210, 99, 40, 0.8);
    box-shadow: 0 0 15px rgba(210, 99, 40, 0.4);
    transform: scale(1.05);
}

.logo {
    height: 60px; 
    width: 150px;

}

.navbar-logo {
    padding-top: 30px;
    padding-left: 38px;
    margin-bottom: -10px;
}


.sidepanel {
    color: white;
    height: 100vh;
    transition: width 0.3s ease;
    background-color: #1a1a1a;
}

.nav-version {
    position: absolute;
    bottom: 10px;
    padding-left: 50px;

}

.user-link {
    padding: 15px 0px 6px 10px;
}

.e-dialog .e-dlg-content {
    background-color: whitesmoke;
    margin:0vw;
    font-size: 10px;
    font-weight: normal;
    line-height: normal;
}

.e-dialog .e-dlg-header {
    color: black;
    text-align:center;
}


label {
    color: dimgray;
    float: left;
}

/* Override for switch-group labels - prevent float from breaking flex layout */
.switch-group label,
.clock-on-form .switch-group label {
    float: none;
    color: #333;
}

/* Switch group base styles for Clock On modals */
.switch-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-group label {
    font-size: 12px;
    color: #333;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    float: none;
}

.switch-label {
    margin-right: 4px;
}

.right-label {
    margin-left: 4px;
}

/* Section content options - flex row layout */
/* Override the generic .options height to allow content to grow */
.section-content.options {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    height: auto !important;
    width: auto !important;
    margin-left: 0 !important;
}
.add {
    display: flex;
    justify-content: center;
    width: 8vh;
    height: 5vh;
    background-color: #25A802;
    border-radius: 0.3vw;
    float: left;
    margin-right: 1vw;
    cursor: pointer;
}

    .add:hover {
        background-color: #45A049;
    }

.copy {
    display: flex;
    justify-content: center;
    width: 8vh;
    height: 5vh;
    background-color: #25A802;
    border-radius: 0.3vw;
    float: left;
    margin-right: 1vw;
    cursor: pointer;
}

    .copy:hover {
        background-color: #45A049;
    }

.edit {
    display: flex;
    justify-content: center;
    width: 8vh;
    height: 5vh;
    background-color: #0DCAF0;
    border-radius: 0.3vw;
    float: left;
    margin-right: 1vw;
    cursor: pointer;
}

    .edit:hover {
        background-color: #0aafd1;
    }

.delete {
    display: flex;
    justify-content: center;
    width: 8vh;
    height: 5vh;
    background-color: #F31F02;
    border-radius: 0.3vw;
    float: left;
    margin-right: 1vw;
    cursor: pointer;
}

    .delete:hover {
        background-color: #D32F2F;
    }

.export {
    display: flex;
    justify-content: center;
    width: 8vh;
    height: 5vh;
    background-color: #F35B02;
    border-radius: 0.3vw;
    float: left;
    cursor: pointer;
}

    .export:hover {
        background-color: #CC5200;
    }

.options {
    width: 50vh;
    height: 5vh;
    margin-top: 1vh;
    margin-bottom:1vh;
    margin-left:1.2vw;
}
img{
   
}
@media only screen and (max-width: 740px) {
    img{
       
    }
    .squiggly-cropped {
        width: 4.5rem;
        height:1.7rem;
        align-self: end;
    }

    .add {
        display: flex;
        justify-content:center;
        width: 10vw;
        height: 5vh;
        border-radius: 1vw;
    }

    .edit {
        display: flex;
        justify-content: center;
        width: 10vw;
        height: 5vh;
        border-radius: 1vw;
    }
    .delete {
        display: flex;
        justify-content: center;
        width: 10vw;
        height: 5vh;
        border-radius: 1vw;
    }
    .copy {
        display: flex;
        justify-content: center;
        width: 10vw;
        height: 5vh;
        border-radius: 1vw;
    }
    .export {
        display: flex;
        justify-content: center;
        width: 10vw;
        height: 5vh;
        border-radius: 1vw;
    }
    .options {
        width: 100vw;
        height: 1vh;
        margin-bottom: 10vw;
    }
}



.e-grid .e-focused:not(.e-menu-item):not(.e-editedbatchcell) {
    box-shadow: 0 0 0 0 !important;
}

/* ============================================
   Clock On Modal - Mobile Responsive Styles
   ============================================ */

/* Tablet: max-width 900px */
@media screen and (max-width: 900px) {
    .clock-on-form .section-content.job-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .clock-on-form .section-content.job-details .form-group.wide {
        grid-column: 1 / 3;
    }

    .clock-on-form .section-content.quantities {
        grid-template-columns: repeat(2, 1fr);
    }

    .clock-on-form .section-content.scheduling {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: max-width 600px */
@media screen and (max-width: 600px) {
    .clock-on-form {
        padding: 8px !important;
        gap: 8px !important;
    }

    .clock-on-form .section-frame {
        padding: 8px 10px !important;
    }

    .clock-on-form .section-content.job-details,
    .clock-on-form .section-content.quantities,
    .clock-on-form .section-content.scheduling {
        grid-template-columns: 1fr !important;
    }

    .clock-on-form .section-content.job-details .form-group.wide {
        grid-column: 1 !important;
    }

    /* Force options to stack vertically and center - multiple selectors for broad coverage */
    .clock-on-form .section-content.options,
    .section-content.options,
    div.section-content.options,
    [class*="section-content"][class*="options"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Force switch groups to be horizontal rows, centered within container */
    .switch-group,
    .clock-on-form .switch-group,
    div.switch-group {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-width: 200px !important;
    }

    /* First switch group (Rework) - align switch to match position of second row's switch */
    .switch-group:first-child {
        justify-content: center !important;
        padding-right: 100px !important;
    }

    /* Ensure switch labels are visible on mobile */
    .switch-group label,
    .switch-group .switch-label,
    .switch-group .right-label {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 12px !important;
        color: #333 !important;
        float: none !important;
    }

    .clock-on-form .button-container,
    .button-container {
        flex-direction: column !important;
        padding: 10px !important;
    }

    .clock-on-form .btn-cancel,
    .clock-on-form .btn-start,
    .btn-cancel,
    .btn-start {
        width: 100% !important;
    }
}