/* Custom Styles for Horti Jaya App */
:root {
    --primary-color: #018003;
    --primary-hover: #016a02;
}

body {
    background-color: #f3f4f6; /* gray-100 */
    font-family: 'Alan Sans', sans-serif;
    margin: 0;
    padding: 0;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-hover:hover {
    background-color: var(--primary-hover) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Custom Dropdown Styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #374151;
    height: 42px;
    line-height: 42px;
    background: #ffffff;
    cursor: pointer;
    border-width: 1px;
    border-radius: 0.375rem;
    border-color: #d1d5db;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #d1d5db;
    border-top: 0;
    background: #fff;
    transition: all 0.5s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999 !important;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    cursor: pointer;
    background-color: #f3f4f6;
}

.custom-option.selected {
    color: #ffffff;
    background-color: var(--primary-color);
}

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

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

.toast {
    animation: slideIn 0.3s forwards;
    min-width: 250px;
}

.toast.hide {
    animation: slideOut 0.3s forwards;
}

.card-item {
    transition: transform 0.2s;
}

.card-item:hover {
    transform: translateY(-2px);
}

.btn-icon-animate:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s;
}
