﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #F4F4F4;
    color: #333;
}

.btnLogin {
    width: 100%;
    padding: 12px;
    background: #215732;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .btnLogin:hover {
        background: #184a29;
    }

.login-container {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    margin-bottom: 1.5rem;
}

    .logo img {
        max-width: 300px;
        height: auto;
    }

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
    width: 100%;
}

    .form-group span {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #215732;
    }

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #CCC;
        border-radius: 6px;
        font-size: 1rem;
        color: #333;
        transition: border 0.3s;
    }

        .form-group input:focus {
            border-color: #215732;
            outline: none;
        }

body.general {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}
/* Fichajes Styles */
.fichajes-container {
    margin: 2rem auto;
    padding: 2rem;
    max-width: 700px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.titols {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #215732;
    display: block;
    font-size: 1.7em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

table.controls td {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.controls #ConBody_ficharData {
    padding: 10px;
    font-size: 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.controls.dates {
    padding: 10px;
    font-size: 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.pujarB {
    align-content: start;
    padding-top: 3px;
}

.controls.boto {
    flex: 1;
    min-width: 140px;
    padding: 0.5rem 1rem;
    background-color: #215732;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

    .controls.boto:hover {
        background-color: #1b4728;
    }

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

    .modal input {
        display: block;
        width: 100%;
        padding: 0.5rem;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .modal button {
        padding: 0.5rem 1rem;
        background-color: #215732;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
    }

        .modal button:hover {
            background-color: #1b4728;
        }

.table-container {
    overflow-x: auto; /* Permet desplaçar-se si la taula és massa ampla */
    margin: 0 auto;
    max-width: 100%; /* Per limitar l'amplada */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: white;
}

table.fitxar, table.calendari {
    width: 100%;
    border-collapse: collapse;
    text-align: center; /* Text centrat */
}

table.calendari {
    table-layout: fixed;
}


table.fitxar th,
table.fitxar td {
    padding: 4px 6px; /* Alçada més petita */
    border: 1px solid #ddd;
}

table.fitxar th, table.calendari tr.cap {
    background-color: #1b4728; /* Verd corporatiu */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}
/*  table.calendari tr td {
        min-height: 20px;
    }*/
table.calendari td {
    /*padding: 4px 6px;*/ /* Alçada més petita */
    border: 1px solid #ddd;
    height: 28px;
    width: 14.28%;
    overflow: hidden;
}
    table.calendari td[onclick] {
        cursor: pointer;
        /*padding: 8px 12px;
        border: 1px solid #e0e0e0;
        text-align: center;
        transition: all 0.2s ease;
        background-color: #f9f9f9;
        color: #333;*/
    }

table.fitxar tr:nth-child(even) {
    background-color: #e9f5e9; /* Verd clar per files parells */
}

table.fitxar tr:hover {
    background-color: #d4ebd4; /* Verd més fosc quan es passa el ratolí */
}

table.fitxar td {
    word-wrap: break-word; /* Trenca paraules llargues */
}

table.centrar {
    width: 100%;
}

    table.centrar tbody {
        margin: 0 auto;
    }

table.totals {
    width: 40%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

    table.totals td, table.totals th {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: center;
    }

    table.totals tr:first-child td {
        background-color: #4CAF50;
        color: white;
        font-weight: bold;
    }

    table.totals td:first-child {
        background-color: #4CAF50;
        color: white;
        font-weight: bold;
    }

    table.totals td {
        background-color: #f9f9f9;
    }

.llegenda {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 11px;
    max-width: 250px;
}

    .llegenda td {
        padding: 8px;
    }

.llegendaText {
    font-size: 11px;
    color: #555;
    text-align: start;
    margin-top: 10px;
    font-style: italic;
}


/* Navbar Container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Navbar Logo */
.navbar-logo img {
    height: 40px;
}

/* Taula de botons */
.navbar .taula-botons {
    border-collapse: collapse;
    text-align: center;
}

    /* Cel·les de la taula */
    .navbar .taula-botons td {
        padding: 1px 15px; /* Espai entre els botons */
    }

.navbar .image-button {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
    border: none;
    background: none;
}

.navbar .image-label {
    display: block;
    text-align: left;
    font-size: 12px;
    margin-top: 1px;
    line-height: 1;
}




.menu {
    margin-left: 20px;
    background-color: #215732;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: none;
    justify-content: center;
    align-items: center;
}

.menu-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .menu-inner .bar {
        width: 20px;
        background-color: #ffffff;
        height: 3px;
        display: inline-block;
        border-radius: 50px;
        transition: all 0.5s;
        transform-origin: right;
    }

    .menu-inner #br2 {
        margin: 7px 0px;
    }

.menu:hover {
    cursor: pointer;
    background-color: #a9dfbf;
}

    .menu:hover .menu-inner .bar {
        background-color: #215732;
    }

#br1.bar-1 {
    transform: rotate(-45deg);
    width: 25px;
    margin: 12px -16px 11px -24px;
}

#br3.bar-3 {
    transform: rotate(45deg);
    width: 25px;
    margin: 4px -16px 11px -22px;
}

#br2.bar-2 {
    display: none;
}

.redirectMov {
    box-shadow: -2px 5px 6px 0px #184a29;
    border-radius: 0px 0px 10px 10px;
    opacity: 0;
    display: flex;
    background-color: white;
    position: fixed;
    width: 37%;
    top: -400px;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

    .redirectMov a {
        color: #000000;
        text-decoration: none;
        width: 86%;
        text-align: center;
        height: 100%;
        padding: 7px 0px;
    }

        .redirectMov a:hover {
            box-shadow: 0px -2px 0px 0px #215732 inset;
        }

    .redirectMov.mostrar {
        opacity: 1;
        top: 63px;
    }

.orgBotMenHam {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

    .orgBotMenHam .image-button {
        width: 100%;
    }

    .orgBotMenHam .image-label {
        width: 100%;
    }






@media (max-width: 800px) {
    .menu {
        display: flex;
    }

    .contenidor-dret {
        display: none;
    }


    table.fitxar th,
    table.fitxar td {
        font-size: 12px;
        padding: 3px 5px;
    }

    table.fitxar {
        font-size: 14px;
    }

    .fichajes-container {
        padding: 1rem;
    }

    /*.navbar-logo img, .navbar-links img {
        height: 25px;
    }*/
}

/* Navbar Links */
/*.navbar-links {
    display: flex;
    gap: 1.5rem;
}

    .navbar-links a {
        text-decoration: none;
        color: #215732;
        font-size: 1rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .navbar-links a:hover {
            color: #1b4728;
        }*/

/* Hamburger Icon */
/*.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .hamburger span {
        background: #215732;
        height: 3px;
        margin: 3px 0;
        width: 25px;
    }*/

/* Responsive Menu */
/*.navbar-mobile {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

    .navbar-mobile a {
        padding: 0.5rem 0;
        text-decoration: none;
        color: #215732;
        font-size: 1rem;
        font-weight: 500;
    }

        .navbar-mobile a:hover {
            color: #1b4728;
        }*/

/* Responsive Styles */
/*@media screen and (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}*/
