/* Forest & Gold Premium Theme - Main Styles */
:root {
    --studio-ink: #111111;
    --studio-white: #FFFFFF;
    --studio-accent: #2563EB;
    --studio-gray: #F3F4F6;
    --studio-border: #E5E7EB;
    --studio-font: 'Outfit', sans-serif;
    
    /* Organic Farm Palette */
    --forest-green: #1B5E20;
    --moss-green: #2E7D32;
    --harvest-gold: #D4AF37;
    --gold: #FFD700;
    --dark-green: #0A3D11;
}

body {
    background-color: var(--studio-white);
    font-family: var(--studio-font);
    color: var(--studio-ink);
    letter-spacing: -0.01em;
}

.navbar-farmly {
    background: var(--studio-white);
    border-bottom: 1px solid var(--studio-border);
    z-index: 1050;
    transition: all 0.2s ease;
}

.navbar-farmly .nav-link, .navbar-farmly .navbar-brand {
    color: var(--studio-ink) !important;
    font-weight: 700;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.navbar-farmly .nav-link:hover, 
.navbar-farmly .nav-link.active {
    color: var(--studio-accent) !important;
}

.navbar-farmly .nav-link.active {
    border-bottom: 2px solid var(--studio-accent);
}

.dropdown-menu {
    z-index: 9999 !important;
}

.btn-gold {
    background: var(--studio-ink);
    color: var(--studio-white);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 10px 24px;
}

.btn-gold:hover {
    background: var(--studio-accent);
    color: var(--studio-white);
}

.btn-outline-gold {
    border: 1px solid var(--studio-ink);
    color: var(--studio-ink);
    background: transparent;
    transition: 0.2s all ease;
    border-radius: 4px;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark-green);
}

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

.offer-slider::-webkit-scrollbar {
    height: 6px;
}
.offer-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.offer-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}
.offer-slider::-webkit-scrollbar-thumb:hover {
    background: var(--studio-accent);
}

.offer-mini-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15) !important;
}

.btn-forest {
    background: var(--studio-accent);
    color: white;
    border: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.btn-forest:hover {
    background: var(--studio-ink);
}

.farmly-card {
    border: 1px solid var(--studio-border);
    border-radius: 4px;
    background: var(--studio-white);
    transition: all 0.2s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

.farmly-card:hover {
    border-color: var(--studio-accent);
}

.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 200px;
    object-fit: cover;
}

.footer-farmly {
    background: var(--studio-ink);
    color: var(--studio-white);
    padding: 80px 0;
}

.text-gold {
    color: var(--studio-accent) !important;
}

.font-secondary {
    font-family: 'Playfair Display', serif;
}

.bg-soft-gold { background-color: rgba(212, 175, 55, 0.1) !important; }
.bg-soft-green { background-color: rgba(27, 94, 32, 0.1) !important; }

/* Forms */
.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px;
}

.form-control:focus {
    border-color: var(--studio-accent);
    box-shadow: none;
}

/* Dashboards Helper Classes */
.sidebar {
    background: var(--forest-green);
    min-height: 100vh;
    padding-top: 20px;
}

.sidebar .nav-link {
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    background: var(--gold);
    color: var(--dark-green);
}


/* Chatbot Styles */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 60px;
    width: 60px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--moss-green);
    transition: all 0.2s ease;
    z-index: 1060;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.chatbot-toggler:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--harvest-gold);
}
.chatbot-toggler span {
    color: #fff;
    position: absolute;
    font-size: 1.6rem;
    line-height: 1;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
    opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}
.chatbot {
    position: fixed;
    right: 35px;
    bottom: 100px;
    width: 380px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    transition: all 0.1s ease;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 0 32px 64px -48px rgba(0,0,0,0.5);
    z-index: 1060;
}
body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: var(--moss-green);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
    position: absolute;
    right: 15px;
    top: 50%;
    display: none;
    cursor: pointer;
    transform: translateY(-50%);
}
header h2 {
    font-size: 1.4rem;
    margin: 0;
}
.chatbot .chatbox {
    overflow-y: auto;
    height: 450px;
    padding: 30px 20px 100px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
    width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
}
.chatbox .chat {
    display: flex;
    list-style: none;
}
.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}
.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: var(--harvest-gold);
    border-radius: 8px;
    margin: 0 10px 7px 0;
}
.chatbox .chat p {
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 12px 12px 0 12px;
    max-width: 75%;
    color: #fff;
    font-size: 0.95rem;
    background: var(--moss-green);
}
.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: #000;
    background: #f2f2f2;
}
.chatbot .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}
.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
}
.chat-input span {
    align-self: flex-end;
    color: var(--forest-green);
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
    visibility: visible;
}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }
  .chatbot header span {
    display: block;
  }
}

