﻿html {
  font-size: 14px;
}
input[type="date"] {
    -webkit-appearance: none;
}


@supports (-webkit-touch-callout: none) {
    input[type="date"]::-webkit-date-and-time-value {
        min-height: 1.5rem;
        text-align: left;
    }

    input[type="date"]::placeholder {
        color: transparent;
    }

    input[type="date"] {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;

    @keyframes float-left {
        0% {
            transform: translate(-10%, 10%);
        }

        25% {
            transform: translate(-5%, 15%);
        }

        50% {
            transform: translate(-15%, 5%);
        }

        75% {
            transform: translate(-20%, 12%);
        }

        100% {
            transform: translate(-10%, 10%);
        }
    }

    @keyframes float-right {
        0% {
            transform: translate(40%, -30%);
        }

        25% {
            transform: translate(30%, -35%);
        }

        50% {
            transform: translate(45%, -25%);
        }

        75% {
            transform: translate(35%, -40%);
        }

        100% {
            transform: translate(40%, -30%);
        }
    }
    /* Use your existing HTML classes */
    .floating-blob

{
    left: 0;
    right: auto; /* Override existing right:0 */
    top: 50%;
    animation: float-left 18s ease-in-out infinite;
}

.floating-blob-2 {
    left: auto; /* Keep position */
    right: 0;
    bottom: auto;
    top: 0;
    animation: float-right 24s ease-in-out infinite;
}

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 24rem;
}

.toast {
    background-color: white;
    border-left: 4px solid #ef4444;
    color: #1f2937;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }

.toast-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
    color: #ef4444;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
}

.toast-close {
    flex-shrink: 0;
    margin-left: 0.75rem;
    color: #9ca3af;
    cursor: pointer;
}

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    #myImg:hover {
        opacity: 0.7;
    }


.mymodal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.65);
}

.mymodal-content {
    margin: auto;
    display: block;
    width: 93%;
    max-width: 93%; 
}

@media (min-width: 1200px) {
    .mymodal-content {
        width: 80%; 
        max-width: 80%;
    }
}


@media (min-width: 1600px) {
    .mymodal-content {
        width: 70%; 
        max-width: 70%;
    }
}


@media (min-width: 1920px) {
    .mymodal-content {
        width: 60%;
        max-width: 60%;
    }
}


#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}


.mymodal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.buttonclose {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .buttonclose:hover,
    .buttonclose:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

@media only screen and (max-width: 700px) {
    .mymodal-content {
        width: 100%;
    }
}
/* Add this to your CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 500ms;
}

.cursor-pointer {
    cursor: pointer;
}

.rotate-180 {
    transform: rotate(180deg);
}
/* Custom Pikaday theme to match emerald color scheme */
/* Pikaday Custom CSS */
.pikaday-custom {
    box-sizing: border-box;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #1F2937;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    min-width: 16rem;
    padding: 1rem;
    border: 1px solid #D1D5DB;
}

    .pikaday-custom .pika-title {
        background-color: transparent;
        text-align: center;
        position: relative;
        margin-bottom: 0.5rem;
    }

        .pikaday-custom .pika-title select {
            cursor: pointer;
            position: absolute;
            z-index: 9998;
            margin: 0;
            left: 0;
            top: 0;
            opacity: 0;
            height: 100%;
            padding: 0;
            filter: alpha(opacity=0);
        }

    .pikaday-custom .pika-label {
        display: inline-block;
        position: relative;
        z-index: 9999;
        margin: 0;
        padding: 5px 3px;
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
        background-color: transparent;
        color: #1F2937;
    }

    .pikaday-custom .pika-prev,
    .pikaday-custom .pika-next {
        display: block;
        cursor: pointer;
        position: relative;
        outline: none;
        border: 0;
        padding: 0;
        width: 20px;
        height: 30px;
        background-color: transparent;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: 20px 20px;
        opacity: 0.5;
        transition: opacity 200ms linear;
    }

        .pikaday-custom .pika-prev:hover,
        .pikaday-custom .pika-next:hover {
            opacity: 1;
        }

    .pikaday-custom .pika-prev {
        float: left;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"/></svg>');
        left: 0.25rem;
    }

    .pikaday-custom .pika-next {
        float: right;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/></svg>');
        right: 0.25rem;
    }

        .pikaday-custom .pika-prev.is-disabled,
        .pikaday-custom .pika-next.is-disabled {
            cursor: default;
            opacity: 0.2;
        }

    .pikaday-custom .pika-select {
        display: inline-block;
    }

    .pikaday-custom .pika-table {
        width: 100%;
        border-spacing: 0;
        border-collapse: collapse;
        margin-top: 0.5rem;
    }

        .pikaday-custom .pika-table th {
            width: 14.285714285714286%;
            padding: 0.5rem 0;
            font-size: 12px;
            font-weight: 600;
            text-align: center;
            color: #6B7280;
        }

        .pikaday-custom .pika-table abbr {
            text-decoration: none;
        }

        .pikaday-custom .pika-table td {
            padding: 0;
            width: 14.285714285714286%;
            text-align: center;
        }

    .pikaday-custom .pika-button {
        cursor: pointer;
        display: inline-block;
        box-sizing: border-box;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        padding: 0;
        border: 0;
        outline: none;
        background: transparent;
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
        border-radius: 9999px;
        color: #1F2937;
    }

        .pikaday-custom .pika-button:hover {
            background: #E5E7EB;
        }

    .pikaday-custom .is-today .pika-button {
        color: #10B981;
        font-weight: bold;
    }

    .pikaday-custom .is-selected .pika-button {
        color: #fff;
        font-weight: bold;
        background: #10B981;
        box-shadow: 0 0 10px #10B981;
    }

        .pikaday-custom .is-selected .pika-button:hover {
            background: #059669;
        }

    .pikaday-custom .is-disabled .pika-button,
    .pikaday-custom .is-outside-current-month .pika-button {
        color: #9CA3AF;
        opacity: 0.3;
        pointer-events: none;
    }

    .pikaday-custom .pika-week {
        font-size: 11px;
        color: #6B7280;
    }

/* Style for the date input when replaced by Pikaday */
.date-input-wrapper {
    position: relative;
}

    .date-input-wrapper input[type="text"] {
        padding-right: 2.5rem; /* Make room for the calendar icon */
    }

    .date-input-wrapper .calendar-icon {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        pointer-events: none;
    }

.log-row.selected {
    background-color: #f1f5ea; /* светло-зелёный, можно другой */
}
