﻿

.urla.main.segment {
    margin: 0;
    padding: 0;
}

.urla.vertical.menu {
    background-color: white;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 50px;
    z-index: 500;
    height: 100vh;
}

.ui.vertical.center.aligned.segment {
    padding: 2px !important;
}

.urla.search-segment {
    position: fixed;
    top: 0px;
    left: 73px;
    z-index: 500;
    width: 70%;
    max-width: 100%;
    margin-right: 50px;
    padding: 0px;
}



.menu.attached.urla-page-tabs {
    padding: 0px;
}


.attached.segment.urla-page-search-bar {
    padding: 5px;
}


.attached.segment.form.urla-page-content {
    margin: 0;
    overflow: scroll;
    height: 70vh;
    padding: 5px !important;
}

.attached.segment.urla-page-footer {
    margin: 0;
    overflow: scroll;
    padding: 7px !important;
}



.urla.management-segment {
    /* position: fixed;
    top: 20px;
    left: 20px;
    z-index: 490 !important; 
    height: 90vh;
    /*width: 80%;
    max-width: 100%;
    z-index: 500;
    margin-right: 50px;
    padding: 5px;*/
}



.urla.map {
    width: 100% !important;
    height: 100vh !important;
    margin: 0px !important;
}

.ui.urla-simple dropdown .menu.tag > .item {
    display: inline-block;
    margin: 1px;
}


.ui.selection.urla-simple dropdown .menu.tag > .item {
    padding: 5px !important;
}

.right-border {
    border-right: 1px solid black; /* Add a black border to the right side of cells with the "right-border" class */
}

.scrollable {
    min-height: 25vh !important;
    max-height: 75vh !important;
    overflow: auto;
}


.urla-tag.ui.label {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white !important;
    margin: 5px !important;
}



.urla-loader {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}


.urla-space::before {
    content: "\00a0"; /* Unicode character for non-breaking space */
}


div.fileinputs {
    position: relative;
}

div.fakefile {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    width: 100%;
}

input.file {
    position: relative;
    text-align: right;
    -moz-opacity: 0;
    filter: alpha(opacity: 0);
    opacity: 0;
    z-index: 2;
}



.tag-label {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white !important;
    margin: 2px !important;
}

.urla-tag.ui.label {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white !important;
    margin: 2px !important;
}


/* TABLES */

.ui.table.urla td {
    padding: 1px;
}



/* TABLES ROW */

table.urla tr.orange {
    background-color: orange;
}


/* TABLES CELL */

table.urla td.nowrap {
    white-space: nowrap;
}

table.urla td.link {
    cursor: pointer; /* Shows a hand cursor on hover */
}

table.urla td.wrap {
    white-space: break-spaces;
}


.table.urla.tiny th {
    padding: 2px !important;
    font-size: 14px;
}

.table.urla.tiny td {
    padding: 2px !important;
    font-size: 14px;
}

.table.urla.mini td {
    padding: 2px !important;
    font-size: 12px;
}

.table.urla.mini th {
    padding: 2px !important;
    font-size: 12px;
}


.urla.fixed.sidebar {
    position: fixed;
    z-index: 1;
    background-color: #1b1c1d;
    width: 255px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    height: 100vh;
}



/* General container styling (acts like the table) */
.grid-container {
    display: grid;
    grid-auto-rows: auto;
    gap: 0; /* Remove gaps */
    width: 100%; /* Full width of container */
    border: 1px solid #ccc; /* Optional: Table border */
    box-sizing: border-box;
    overflow-x: auto; /* Allow horizontal scrolling for dynamic hours */
    background-color: white;
    height: 70vh; /* Define height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Header (thead) styling */
.grid-header {
    display: grid;
    grid-template-columns: 100px repeat(var(--hour-count, 48), 50px); /* First column fixed, others dynamic */
    grid-auto-rows: 50px; /* Each row height */
    position: sticky; /* Make the header sticky */
    top: 0; /* Stick to the top of the container */
    z-index: 14; /* Ensure it is above other elements */
    background: white; /* Background color to prevent content from overlapping */
    border-bottom: 2px solid #ccc; /* Optional: Distinguish header visually */
}

/* Header cells */
.header-cell {
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    position: relative;
    box-sizing: border-box;
    height: 50px;
    background: rgba(0,0,0,.03);
    color: black;
    font-weight: bold;
    position: sticky; /* Sticky for individual cells if needed */
    top: 0; /* Align with the header */
    z-index: 14; /* Ensure it's above other cells */
}

    .header-cell:first-child {
        width: 100px; /* Fixed width for the first column */
    }

    .header-cell:last-child {
        border-right: none; /* Remove the border for the last cell */
    }

/* Body (tbody) styling */
.grid-body {
    display: grid;
    grid-auto-rows: auto; /* Each row height */
}

/* Rows (tr equivalent) */
.grid-row {
    display: grid;
    grid-template-columns: 100px repeat(var(--hour-count, 48), 50px);
    height: auto;
}

    .grid-row:last-child {
        border-bottom: none; /* Remove the border for the last row */
    }

/* Body cells (td equivalent) */
.body-cell {
    border: 1px solid #ccc;
    position: relative;
    box-sizing: border-box;
    min-height: 50px;
}

    .body-cell .body-cell-label {
        background-color: black;
        position: absolute;
        text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
        color: white !important;
        margin: 2px;
        z-index: 9;
        border-radius: 4px;
        text-align: center;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
        transform: translateY(calc(var(--label-index, 0) * 110%));
        height: 20px;
        border: 1px solid white;
    }


    .body-cell:first-child {
        color: black;
        position: sticky;
        z-index: 12 !important;
        background-color: #e8e8e8; /* Arka plan şart */
        font-weight: bold;
        text-align: center !important;
        position: sticky;
        left: 0;
    }

    .body-cell:last-child {
        border-right: none; /* Remove the border for the last cell */
    }

.body-cell-label-icon {
    left: 0 !important;
    font-size: 7px !important;
    border: 1px solid white !important;
    position: absolute !important;
    z-index: -1 !important;
    width: 18px;
    height: 100%;
}




/* CUSTOM TOOLTIP */
.urla-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    /* ATTRIBUTE-BASED TOOLTIP (urla-tooltip="Text") */
    .urla-tooltip[urla-tooltip]:hover::after {
        content: attr(urla-tooltip);
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        opacity: 1;
        visibility: visible;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* BOTTOM Modifier (override defaults) */
    .urla-tooltip.urla-tooltip--bottom[urla-tooltip]:hover::after {
        top: auto; /* Reset top from default */
        bottom: -40px; /* Position below */
        left: 50%;
        transform: translateX(-50%);
    }

    /* LEFT Modifier */
    .urla-tooltip.urla-tooltip--left[urla-tooltip]:hover::after {
        top: 50%;
        left: auto; /* Reset left from default */
        bottom: auto; /* If needed, reset bottom too */
        right: 100%; /* Move to the left side */
        transform: translateY(-50%);
    }

    /* RIGHT Modifier */
    .urla-tooltip.urla-tooltip--right[urla-tooltip]:hover::after {
        top: 50%;
        left: 100%;
        bottom: auto; /* Reset if needed */
        transform: translateY(-50%);
    }


    /* HTML-BASED TOOLTIP */
    .urla-tooltip .urla-tooltip-content {
        position: absolute;
        bottom: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 100;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    /* HTML-BASED TOOLTIP */
    .urla-tooltip.urla-tooltip--bottom .urla-tooltip-content {
        top: 50%;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .urla-tooltip.urla-tooltip--right .urla-tooltip-content {
        top: 50%;
        left: 100%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .urla-tooltip.urla-tooltip--left .urla-tooltip-content {
        top: 50%;
        left: auto; /* Reset left from default */
        bottom: auto; /* If needed, reset bottom too */
        right: 100%; /* Move to the left side */
        transform: translateY(-50%);
    }

    /* Show HTML Tooltip if no attribute is present */
    .urla-tooltip:not([urla-tooltip]):hover .urla-tooltip-content {
        visibility: visible;
        opacity: 1;
    }





/* CUSTOM TOOLTIP */
.urla-tooltip-global {
    position: relative;
    cursor: pointer;
}

    /* HTML-BASED TOOLTIP */
    .urla-tooltip-global .urla-tooltip-global__content {
        z-index: 100;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
        position: absolute;
        transform: translateX(-60%);
    }

    /* Show HTML Tooltip if no attribute is present */
    .urla-tooltip-global:hover .urla-tooltip-global__content {
        visibility: visible;
        opacity: 1;
    }




/* CGMON CUSTOM LAYOUT */
.urla-layout {
    height: 100vh;
    margin: 0 !important;
    overflow: hidden;
    display: flex !important;
}
/* Content Area */
.urla-content {
    padding: 0 !important;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    gap: 10px;
    position: relative;
}

/* Scrollable Section (Table or Large Content) */
.urla-content__body {
    flex: 1;
    overflow-y: auto;
    padding-top: 0 !important;
    /* padding: 20px; =>  later padding */
    margin-left: 20px;
    background-color: white;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}



/* Scrollable Section (Table or Large Content) */
.urla-content__body--noscroll {
    flex: 1;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 20px;
    background-color: transparent;
}


.urla-content__header {
    align-items: center;
    background: #fff;
    padding: 10px;
    position: absolute;
    height: 50px !important;
    top: 0;
    width: 100%
}

.urla-content__header--styled {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background: #f5f5f5;
    transform: skewX(316deg);
    transform-origin: top right;
}


.urla-content__footer {
    align-items: center !important;
    background: #fff !important;
    padding: 10px !important;
    position: absolute !important;
    bottom: 0px !important;
    width: 100% !important;
    height: 50px !important;
}

.urla-content__footer--styled {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background: #f5f5f5;
    transform: skewX(-316deg);
    transform-origin: bottom right;
}

.urla-main-sidebar {
    width: 250px !important;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: linear-gradient(0deg, pink, pink, pink, white,white) !important;
}


i.urla-theme--color {
    color: pink !important;
}


/* MODIFIERS */
.urla--full-width {
    width: 100% !important;
}

.urla--full-height {
    height: 100% !important;
}

.urla--absolute {
    position: absolute !important;
}

.urla--min50vh {
    min-height: 50vh !important;
}

.urla--min30vh {
    min-height: 30vh !important;
}


.urla--zindex999 {
    z-index: 999 !important;
}

.urla-menu {
    font-size: 1.1em !important;
}


/*

    
.urla-menu {
    background-color: transparent !important;
}

    .urla-menu i {
        float: left !important;
        margin-right: 10px !important;
    }
*/


.ui.table.urla-sticky {
    max-height: 100%; /* Set the desired height for the table's scrollable area */
    overflow-y: auto;
}

    .ui.table.urla-sticky thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #f9fafb; /* Ensure the header background is distinct */
    }

    /* Optional styling for better appearance */
    .ui.table.urla-sticky tbody tr {
        border: 1px solid #ddd;
    }


.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
