:root {
    --color-bg-dark: #333333;
    --color-primary: #4587F0;
    --color-accent: #4651F0;
    --color-text-light: #E0E0E0;
    --color-additional-accent: #7146F0;
}

body{
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    margin: 0px; 
    position: relative;
}
.main-bg{
    background: url(/assets/media/bg.jpeg);
    background-position: center;
    background-size: cover;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.overlay-bg{
    background: #0000008a;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a{
    color: var(--color-text-light)!important;
    /*text-decoration: none;*/
}
.btn, button{
    background-color: var(--color-primary);
    transition: all .3s;
    padding: 5px 15px;
    text-decoration: none;
    border: none;
    border-style: none;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    column-gap: 10px;

}
.btn:hover {
    background-color: var(--color-accent);
}
.btn svg {
    max-width: 15px;
    max-height: 15px;
    fill: #fff;
}

header{
    background-color: #222;
    padding: 8px;
}

header .col-right{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 15px;
    align-items: center;
}
.logo{
    max-width: 180px;
    max-height: 60px;
}

.main-content{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}
aside.sidebar{
    width: 20%;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #262626b3;
    padding: 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1.1em;
}
.sidebar-container{
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
aside.sidebar svg{
    max-width: 25px;
    max-height: 25px;
    fill: #fff;
}
aside.sidebar .btn{
    display: flex;
    flex-direction: row;
    column-gap: 10px;
    align-content: center;
    padding: 10px 15px;
    align-items: center;
}

main.main{
    width: 80%;
    padding: 25px;
}

footer{
    background-color: #222;
    padding: 2px 4px;
    text-align: center;
    margin: 0px;
}

table thead{
    background-color: var(--color-primary);
    transition: all .3s;
}
table tr.clickable-row:hover{
    background-color: var(--color-accent);
}

.form-elements {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
}

.form-element {
    display: flex;
    flex-direction: column;
    width: 30%;
}
.form-element label{
    font-size: 14px;
    padding: 5px 5px;
    color: #c7c7c7;
}
input, textarea, select{
    background-color: #ffffff1f;
    color: #fff;
    border-radius: 15px;
    padding: 8px 12px;
    letter-spacing: .6px;
    border-style: none;
    font-size: 14px;
}
select{
    padding-right: 2.5rem;
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    
}
select option, input option {
    color: black;
    /* czarny tekst dla rozwiniętych opcji */
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* zmienia ikonę na białą */
    cursor: pointer;
}



.col-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.col-left {
    text-align: left;
    flex: 1;
}

.col-right {
    text-align: right;
    flex: 1;
}


section{
    margin: 25px;
}
.section-title{
    background: #222;
    font-weight: 600;
    font-size: 1.3em;
    border-radius: 20px 20px 0px 0px;
    padding: 20px;
    display: flex;
    column-gap: 15px;
    align-items: center;
}
.section-title svg {
    max-width: 30px;
    max-height: 30px;
    fill: #fff;
}
.section-content{
    background-color: #262626;
    border-radius: 0px 0px 20px 20px;
    padding: 20px;
}

 

/*event.php*/
.plan-row, .employee-row {
    display: flex;
    column-gap: 15px;
    align-items: center;
}
.plan-row > input:nth-child(2){
    width: 80%;
}





/* Loader container */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(71, 71, 71);
    /* lub np. #0000008a */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* musi być na wierzchu */
}

/* Prosty spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animacja */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}