:root {
    --primary-color: #a0c560;
    --primary-hover-color: #83a150;
    --primary: linear-gradient(135deg, #D0D59D 0%, #b9bd85 100%);
    --secondary: #263b19;
    --background: #f8fdfc;
    --text-main: #000000;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/aeonik.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    font-family: Aeonik, fantasy;
}

.main-space {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.alert {
    width: 400px;
    margin: 20px auto;
    padding: 0 15px 0 15px;
    position: fixed;
    border-radius: 5px;
    z-index: 9999;
    animation: slideIn 0.4s ease-out;
    height: auto;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: left;
    box-shadow: 2px 6px 30px 0 #b6b6b6;
}

.warning-alert {
    background-color: #ffd48a;
    border-left:5px solid #9d6300;
}

.success-alert {
    background-color: #a8f0c6;
    border-left:5px solid #188b48;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.ct-parent {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.ct {
    width: 65%;
    background: white;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 2px 6px 30px 0 lightgray;
}

.ct-show {
    width: 85%;
}

.ct-subject {
    background: var(--primary-color);
    color: var(--text-main);
    text-align: center;
    padding: 10px;
    letter-spacing: 3px;
}

.ct-subject-show-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ct-row {
    display: flex;
    gap: 20px;
    padding: 15px 30px;
    align-items: flex-end;
}

.ct-subject + .ct-row {
   padding-top: 3%
}

.no-picture-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-picture-text {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 15px 10px;
    line-height: 0.5;
}

.btn-del {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    margin-bottom: 8px;
    justify-content: center;
}

.btn-del:hover {
    background: var(--primary-hover-color);
}

button {
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-p {
    background: var(--primary-color);
    color: var(--text-main);
    padding: 15px 40px;
}

.btn-p:hover {
    background: var(--primary-hover-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(1px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.filter-modal {
    background: white;
    width: clamp(500px, 90%, 600px);
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    padding: 5px 25px 10px 25px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--background);
    padding-bottom: 5px;
    color: var(--secondary);
}

.smaller-btn {
    padding: 8px 20px;
}

.del-id {
    background-color: rgb(225 31 31 / 0.9); 
    color: white;
    font-weight: bolder;
}

.del-id:hover {
    background-color: rgb(177 24 24 / 0.9);
}

.cancel-id {
    background-color: lightgray
}

.cancel-id:hover {
    background-color: #aaaaaa;
}

.search-bar-ct {
    display: flex;
    flex-direction: column;
}

.search-bar-ct input {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    width: 300px;
    transition: width 0.3s;
    font-size: 14px;
}

.search-bar-ct input:focus {
    outline: none;
    border-color: var(--secondary);
}

.chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 10px;
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

.chip.active {
    background: var(--primary-color);
    font-weight: bold;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item img {
    width: 45px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.suggestion-item span {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.dynamic-slots-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recipe-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    padding: 4px 8px;
    flex: 1;
    min-height: 25px;
}

.recipe-slot.filled {
    background: var(--primary-color);
    color: var(--text-main);
    justify-content: flex-start;
    border: 1px solid var(--primary-hover-color);
    box-shadow: 2px 1px 3px 0 #bebebe;
}

.recipe-slot.empty {
    border: 3px dotted var(--primary-color);
    color: rgb(160 197 96 / 0.2);
}

.recipe-slot.full-height {
    font-size: 24px;
}

.recipe-slot:hover {
    transform: scale(1.02);
    color: var(--primary-color);
}

.recipe-slot.filled:hover {
    transform: scale(1.02);
    color: var(--text-main);
    background: var(--primary-hover-color);
}

.recipe-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-controls {
    display: flex;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}

.search-resuFlt-item:hover {
    background-color: var(--primary-hover-color);
    color: var(--text-main);
}

.search-suggestions {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1050;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.no-found {
    padding: 15px;
    text-align: center;
    opacity: 0.5;
    background: white;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}