/**************** COLORS SETUP ****************/
:root {
    --bgPri: #e9f2f6;
    --bgSnd: #fff;
    --bgDark: rgba(8, 29, 41, 1);

    --white: #fff;
    --black: #000;

    --accentPri: rgba(6, 140, 179, 1);
    --accentSnd: rgba(154, 9, 159, 1);

    --cardBackground: rgba(255, 255, 255, 0.4);
    --cardBackgroundHover: rgba(255, 255, 255, 0.8);

    --formBackground: rgba(6, 140, 179, 0.2);
    --successBackground: rgba(32, 175, 0, 0.7);
    --errorBackground: rgba(166, 0, 0, 0.6);

    --actionPrimary: rgba(6, 140, 179, 0.6);
    --actionPrimaryHover: rgba(6, 140, 179, 1);

    --actionSecondary: rgba(184, 206, 216, 0.6);
    --actionSecondaryHover: rgba(184, 206, 216, 1);

    --actionWarning: rgba(166, 0, 0, 0.5);
    --actionWarningHover: rgba(166, 0, 0, 0.9);

    --timerStop: rgba(166, 0, 0, 0.5);
    --timerStopHover: rgba(166, 0, 0, 0.9);

    --timerRestart: rgba(6, 140, 179, 0.5);
    --timerRestartHover: rgba(6, 140, 179, 0.9);


}




.green {
    color: var(--successBackground);
}

.red {
    color: var(--errorBackground);
}

.gray {
    color: var(--actionSecondary);
}





.button {
    padding: 10px;
    border-radius: 4px;
    background-color: var(--accentPri);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}






/**************** DASHBOARD ****************/

.container {
    display: flex;
    column-gap: 10px;
    row-gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.card {
    background-color: var(--cardBackground);
    border-radius: 12px;
    padding: 28px 20px;
    transition: background-color 0.4s ease;
    text-align: center;
    flex-grow: 1;
    min-width: 240px;
    cursor: pointer;
    flex-basis: 0;
}

.card:hover {
    background-color: var(--cardBackgroundHover);
}

.card_value {
    font-size: 1.6em;
    margin-bottom: 8px;
}

.card_title {
    opacity: 0.3;
}

.link {
    background-color: var(--cardBackground);
    border-radius: 12px;
    padding: 28px 20px;
    transition: background-color 0.4s ease;
    text-align: center;
    flex-grow: 1;
    min-width: 240px;
    cursor: pointer;
    flex-basis: 0;
}

.link a {
    display: block;
    color: var(--accentPri);
}

.link:hover {
    background-color: var(--actionPrimaryHover);
}

.link:hover a {
    color: var(--white);
}

.timer_value {
    font-size: 2em;
    font-weight: 700;
}

.timer_customer {
    opacity: 0.6;
    font-weight: 300;
}

.timer_actions {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 12px;
    column-gap: 20px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.card:hover .timer_actions{
    opacity: 1;
}

.timer_action.stop a {
    background-color: var(--timerStop);
    color: var(--white);
}

.timer_action a .icon {
    padding: 0 6px;
}

.timer_action.restart a {
    background-color: var(--timerRestart);
    color: var(--white);
}

.timer_action a {
    background-color: black;
    border-radius: 4px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.timer_action:hover.stop a {
    background-color: var(--timerStopHover);
}

.timer_action:hover.restart a {
    background-color: var(--timerRestartHover);
}

.dashboard_icon {
    font-size: 1.4em;
    margin-bottom: 8px;
}

.label {
    font-weight: 300;
    opacity: 0.4;
}

.value {
    font-size: 1.2em;
    font-weight: 400;
}



/**************** CUSTOMERS LIST ****************/

.new_entry {
    background-color: var(--cardBackgroundHover);
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new_entry a {
    color: var(--accentPri);
    display: block;
    transition: all 0.3s ease;
    padding: 20px 10px;
}

.new_entry:hover {
    background-color: var(--formBackground);
}

.new_entry:hover a {
    color: var(--accentSnd);
}

.customer {
    position: relative;
    background-color: var(--cardBackground);
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer:hover {
    background-color: var(--cardBackgroundHover);
}

.actions {
    display: none;
    position: absolute;
    right: 10px;
    top: 2px;
    padding: 10px;
}

.customer:hover .actions{
    display: flex;
}

.card:hover .actions{
    display: flex;
}

.timesheet:hover .actions{
    display: flex;
}

.action {
    border-radius: 4px;
    color: var(--white);
    margin: 0 2px;
}

.action a{
    display: block;
    padding: 10px 20px;
    color: var(--white);
}

.action.primary {
    background-color: var(--actionPrimary);
}

.action.secondary {
    background-color: var(--actionSecondary);
}

.action.warning {
    background-color: var(--actionWarning);
}

.action.primary:hover {
    background-color: var(--actionPrimaryHover);
}

.action.secondary:hover {
    background-color: var(--actionSecondaryHover);
}

.action.warning:hover {
    background-color: var(--actionWarningHover);
}



/**************** TIMESHEET LIST ****************/



.timesheet {
    position: relative;
    background-color: var(--cardBackground);
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--black);
}

.timesheet:hover {
    background-color: var(--cardBackgroundHover);
}

.firstrow {
    display: flex;
    justify-content: space-between;
}

.shortcode {
    font-weight: 300;
    opacity: 0.4;
}

.id {
    opacity: 0.5;
    font-size: 0.7em;
    font-weight: 300;
    background-color: var(--actionSecondary);
    border-radius: 4px;
    padding: 2px 4px;

}

.title {
    font-weight: 700;
}

.company {
    font-weight: 700;
    padding-bottom: 8px;
}

.muted {
    opacity: 0.5;
    font-weight: 400;
}

.duration {
    font-size: 1.2em;
    padding: 8px 0;
    color: var(--accentPri);
}

.details {
    display: flex;
    font-size: 0.8em;
}

.date {
    opacity: 0.4;
}

.hours {
    font-weight: 700;
    padding-right: 1px;
}

.minutes {
    font-weight: 400;
    padding-right: 1px;
    padding-left: 1px;
}

.seconds {
    opacity: 0.4;
    font-weight: 100;
    padding-left: 1px;
}

.activity_label {
    opacity: 0.5;
    padding-right: 8px;
}

.activity_value {
    opacity: 0.8;
}




/**************** INVOICE LIST ****************/


.invoice_group {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--cardBackground);
    border-radius: 8px;
}

.invoice_entry {
    display: grid;
    grid-template-columns: 2fr 2fr 4fr 2fr 4fr 2fr 1fr;
    column-gap: 10px;
    row-gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.invoice_entry:hover {
    background-color: var(--cardBackgroundHover);
}

.invoice_total {
    font-weight: 700;
}

.invoice_duration {
    text-align: center;
}





.snackbar {
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: 300;
    display: flex;
}

.snackbar-icon {
    padding: 2px 6px;
    font-size: 1em;
}

.snackbar.success {
    background-color: var(--successBackground);
    color: var(--white);
}

.snackbar.error {
    background-color: var(--errorBackground);
    color: var(--white);
}