/* 
    Created on : 1. 11. 2024, 17:12:38
    Author     : jelinjon
*/
:root {
    --background: #f8f5f0;
    --foreground: #3e2723;
    --card: #f8f5f0;
    --card-foreground: #3e2723;
    --popover: #f8f5f0;
    --popover-foreground: #3e2723;
    --primary: #2e7d32;
    --primary-foreground: #ffffff;
    --secondary: #e8f5e9;
    --secondary-foreground: #1b5e20;
    --muted: #f0e9e0;
    --muted-foreground: #6d4c41;
    --accent: #c8e6c9;
    --accent-foreground: #1b5e20;
    --destructive: #c62828;
    --destructive-foreground: #ffffff;
    --border: #e0d6c9;
    --input: #e0d6c9;
    --ring: #2e7d32;
    --chart-1: #4caf50;
    --chart-2: #388e3c;
    --chart-3: #2e7d32;
    --chart-4: #1b5e20;
    --chart-5: #0a1f0c;
    --sidebar: #f0e9e0;
    --sidebar-foreground: #3e2723;
    --sidebar-primary: #2e7d32;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #c8e6c9;
    --sidebar-accent-foreground: #1b5e20;
    --sidebar-border: #e0d6c9;
    --sidebar-ring: #2e7d32;
    --font-sans: Montserrat, sans-serif;
    --font-serif: Merriweather, serif;
    --font-mono: Source Code Pro, monospace;
    --radius: 0.5rem;
    --shadow-x: 0;
    --shadow-y: 1px;
    --shadow-blur: 3px;
    --shadow-spread: 0px;
    --shadow-opacity: 0.1;
    --shadow-color: oklch(0 0 0);
    --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
    --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
    --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
    --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
    --tracking-normal: 0em;
    --spacing: 0.25rem;
}

.dark {
    --background: #1c2a1f;
    --foreground: #f0ebe5;
    --card: #2d3a2e;
    --card-foreground: #f0ebe5;
    --popover: #2d3a2e;
    --popover-foreground: #f0ebe5;
    --primary: #4caf50;
    --primary-foreground: #0a1f0c;
    --secondary: #3e4a3d;
    --secondary-foreground: #d7e0d6;
    --muted: #252f26;
    --muted-foreground: #d7cfc4;
    --accent: #388e3c;
    --accent-foreground: #f0ebe5;
    --destructive: #c62828;
    --destructive-foreground: #f0ebe5;
    --border: #3e4a3d;
    --input: #3e4a3d;
    --ring: #4caf50;
    --chart-1: #81c784;
    --chart-2: #66bb6a;
    --chart-3: #4caf50;
    --chart-4: #43a047;
    --chart-5: #388e3c;
    --sidebar: #1c2a1f;
    --sidebar-foreground: #f0ebe5;
    --sidebar-primary: #4caf50;
    --sidebar-primary-foreground: #0a1f0c;
    --sidebar-accent: #388e3c;
    --sidebar-accent-foreground: #f0ebe5;
    --sidebar-border: #3e4a3d;
    --sidebar-ring: #4caf50;
    --font-sans: Montserrat, sans-serif;
    --font-serif: Merriweather, serif;
    --font-mono: Source Code Pro, monospace;
    --radius: 0.5rem;
    --shadow-x: 0;
    --shadow-y: 1px;
    --shadow-blur: 3px;
    --shadow-spread: 0px;
    --shadow-opacity: 0.1;
    --shadow-color: oklch(0 0 0);
    --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
    --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
    --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
    --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
    --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
    --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
}

/* TODO remove */
:root {
    --dark-green: #306000;
    --light-green: #acc395;
    --lightest-green: #eefceb;
    --brown: #523800;
    --gray: #424242;
    --light-gray: lightgray;
    --black: black;
    --cancel-button-color: darkred;
    --cancel-button-accent-color: lightcoral;
    --confirm-button-color: #306000;
    --text-primary-color: black;
    --text-accent-color: white;
    --shadow-primary-color: rgba(0, 0, 0, 0.2);
    --slider-default-shadow-color: rgba(0, 0, 0, 0.1);
    --slider-hover-shadow-color: rgba(0, 0, 0, 0.3);
    --albumphoto-details-background: rgba(0, 0, 0, 0.9);
    --photo-details-background: rgba(0, 0, 0, 0.5);
    
    /*svg variables*/
    --primary-color: #dadada;
    --highlight-color: #e9e98a;
    --dark-color: #6d6d6d;
    --grass-green: #82ba00;
    --tree-brown: #825200;
    --tree-green: #009900;
    --photo-border: #000000;
}

svg {
    .outline {
        stroke: var(--photo-border, #000000);
        stroke-width: 1;
    }
    .thick-outline {
        stroke: var(--photo-border, #000000);
        stroke-width: 2;
    }
    .fill-none {
        fill: none;
    }
    .brown {
        fill: var(--brown-fill, #825200);
    }
    .primary {
        fill: var(--primary-color);
    }
    .highlight {
        fill: var(--highlight-color);
    }
    .dark {
        fill: var(--dark-color);
    }
    .green {
        fill: var(--grass-green);
    }
    .brown {
        fill: var(--tree-brown);
    }
    .tree-green {
        fill: var(--tree-green);
    }
}


.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: var(--sidebar-primary);
    color: var(--sidebar-primary-foreground);
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
    
    a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: var(--sidebar-primary-foreground);
        display: block;
        transition: 0.3s;
        
        &:hover {
            color: var(--sidebar-accent-foreground);
        }
    }
    
    .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
}

html, body {
    color: var(--black);
    margin: 0px;
    background-color: var(--lightest-green);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner {
    color: var(--text-accent-color);
    text-align: center;
    background-color: var(--brown);
    min-width: 500px;
    
    a {
        display: flex;
        align-content: center;
        justify-content: center;
        gap: 16px;
        color: var(--text-accent-color);
        text-decoration: none;
    }
    
    &.header {
        font-size: 50px;
        padding: 20px;
        
    }
    &.footer {
        display: flex;
        flex-wrap: wrap;
        a {
            margin-left: 5px;
            color: inherit;
            text-decoration: underline;
        }
        padding: 20px;
        display: flex;
        align-content: center;
        justify-content: center;
    }
}

.wrapper {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    flex: 1;
}
.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--dark-green);
  min-width: 455px;
   
  .float-right {
      float: right;
  }
  
  li {
    float: left;
    
    a, span {
        display: block;
        color: var(--text-accent-color);
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        
        &:hover {
            background-color: var(--light-green);
            box-shadow: 0 4px 8px 0 var(--shadow-primary-color), 0 6px 20px 0 var(--shadow-primary-color);
        }
        
        &.active {
            background-color: var(--light-green);
        }
    }
    
    span {
        margin:0;
        padding: 12px 16px;
    }
  }
}

table {
    margin-top: 16px;
    border-collapse: collapse;
    
    th, td {
        padding: 10px;
        border: 1px solid var(--black);
        
        &.action-column-cell {
            .cancel {
                margin-right: 10px;
            }
        }
    }
}

@media only screen and (max-width: 1000px) {
    table {
        th, td {
            &.action-column-cell {
                input {
                    display: block;
                    &.cancel {
                        margin-bottom: 10px;
                    }
                }
            }
        }
    }
}
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }
}


input[type=submit], button, select {
    min-width: 120px;
    width: fit-content;
    height: 40px;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    font-size: 1em;
    
    &.refresh {
        min-width: 40px;
        margin-right: 16px;
    }
}

input[type=submit], button {
    background-color: var(--dark-green);
    border: none;
    color: var(--text-accent-color);
    
    &:disabled {
        background-color: var(--gray);
        color: var(--text-primary-color);
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.6;
    }

    &.right {
        float: right;
    }
    &.delete, &.cancel {
        background-color: var(--cancel-button-color);

        &:hover {
            background-color: var(--cancel-button-accent-color);
        }
    }

    &:hover {
        background-color: var(--light-green);
        box-shadow: 0 4px 8px 0 var(--shadow-primary-color), 0 6px 20px 0 var(--shadow-primary-color);
    }
}

.tooltip {
    position: relative;
    font-family: "Times New Roman", Times, serif;
    font-size: 1em; 
    
    .tooltip-text {
        visibility: hidden;
        width: 260px;
        background-color: var(--gray);
        color: var(--text-accent-color);
        padding: 8px;
        border-radius: 4px;

        position: absolute;
        z-index: 100;
        bottom: 100%;
        left: 0%;
        box-shadow: 0 4px 8px 0 var(--shadow-primary-color), 0 6px 20px 0 var(--shadow-primary-color);
        margin-bottom: 8px;
        
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    &::before {
        content: "ⓘ";
    }
    &:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
}