/* Farm Header */
.farm-header {
    text-align: center;
    margin-bottom: 2rem;
}

.farm-header h1 {
    color: #F4EEFF;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.farm-header p {
    color: #B8ADD2;
    font-size: 1rem;
    margin: 0;
}

/* Farm Filters */
.farm-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.search-filter {
    position: relative;
    flex: 1;
}

.search-filter i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #B8ADD2;
}

.search-filter input {
    width: 100%;
    background: #353547;
    border: 1px solid #383241;
    border-radius: 16px;
    padding: 1rem 1rem 1rem 3rem;
    color: #F4EEFF;
    font-size: 1rem;
    outline: none;
}

.search-filter input::placeholder {
    color: #B8ADD2;
}

.toggle-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #B8ADD2;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #353547;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #B8ADD2;
    transition: .4s;
}

input:checked + .slider {
    background-color: #1FC7D4;
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #FFFFFF;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Farm List */
.farm-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Farm Card */
.farm-card {
    background: rgba(39, 38, 44, 0.7);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.farm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.farm-tokens {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.token-icons {
    position: relative;
    width: 64px;
    height: 32px;
}

.token-icons img {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #27262C;
    border: 2px solid #383241;
}

.token-icons img:first-child {
    left: 0;
    z-index: 2;
}

.token-icons img:last-child {
    right: 0;
    z-index: 1;
}

.farm-tokens h3 {
    color: #F4EEFF;
    margin: 0;
    font-size: 1.25rem;
}

.multiplier {
    background: #353547;
    color: #1FC7D4;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Farm Card Body */
.farm-card-body {
    padding: 1rem 0;
    border-top: 1px solid #383241;
    border-bottom: 1px solid #383241;
}

.farm-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #B8ADD2;
    font-size: 0.875rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.apr {
    color: #31D0AA;
    font-weight: 600;
}

.farm-earned, .farm-staked {
    margin-top: 1.5rem;
}

.farm-earned span, .farm-staked span {
    display: block;
    color: #B8ADD2;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.earned-amount, .staked-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount {
    color: #F4EEFF;
    font-size: 1.25rem;
    font-weight: 600;
}

.harvest-button, .connect-button {
    background: #1FC7D4;
    color: #191326;
    border: none;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.harvest-button:hover, .connect-button:hover {
    background: #33c9d0;
}

.harvest-button:disabled {
    background: #383241;
    color: #666171;
    cursor: not-allowed;
}

.staked-actions {
    display: flex;
    gap: 0.5rem;
}

.minus-button, .plus-button {
    background: #353547;
    color: #F4EEFF;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.minus-button:hover, .plus-button:hover {
    background: #383241;
}

/* Farm Card Footer */
.farm-card-footer {
    padding-top: 1rem;
}

.details-button {
    width: 100%;
    background: transparent;
    border: none;
    color: #1FC7D4;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.details-content {
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #B8ADD2;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links a {
    color: #1FC7D4;
    text-decoration: none;
    font-size: 0.875rem;
}

.links a:hover {
    text-decoration: underline;
}

.get-lp-button {
    background: #1FC7D4;
    color: #191326 !important;
    text-align: center;
    padding: 0.75rem;
    border-radius: 16px;
    font-weight: 600;
}

.get-lp-button:hover {
    background: #33c9d0;
    text-decoration: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .farm-filters {
        flex-direction: column;
    }

    .search-filter {
        width: 100%;
    }

    .farm-list {
        grid-template-columns: 1fr;
    }
}

.stake-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.stake-modal {
    background-color: #1E1E1E;
    border-radius: 20px;
    width: 420px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stake-modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2D2D2D;
}

.stake-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #FFFFFF;
}

.stake-modal-header .close-button {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.stake-modal-header .close-button:hover {
    color: #FFFFFF;
}

.stake-modal-body {
    padding: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.stake-amount,
.unstake-amount {
    flex: 1;
    background-color: #2D2D2D;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: #FFFFFF;
    font-size: 16px;
}

.stake-amount::placeholder,
.unstake-amount::placeholder {
    color: #6B7280;
}

.max-button {
    background-color: #3B3B3B;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.max-button:hover {
    background-color: #4B4B4B;
}

.balance-info {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.stake-modal-footer {
    padding: 20px;
    border-top: 1px solid #2D2D2D;
}

.confirm-stake,
.confirm-unstake {
    width: 100%;
    background-color: #7C3AED;
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.confirm-stake:hover,
.confirm-unstake:hover {
    background-color: #6D28D9;
}

.confirm-stake:disabled,
.confirm-unstake:disabled {
    background-color: #4B5563;
    cursor: not-allowed;
}

/* Farm card styles */
.farm-card {
    background-color: #1E1E1E;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.farm-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2D2D2D;
}

.farm-tokens {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-icons {
    position: relative;
    width: 64px;
    height: 32px;
}

.token-icons img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
}

.token-icons img:first-child {
    left: 0;
    z-index: 2;
}

.token-icons img:last-child {
    right: 0;
    z-index: 1;
}

.farm-tokens h3 {
    margin: 0;
    font-size: 20px;
    color: #FFFFFF;
}

.farm-multiplier .multiplier {
    background-color: #7C3AED;
    color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.farm-card-body {
    padding: 20px;
}

.farm-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 14px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.farm-earned,
.farm-staked {
    margin-bottom: 20px;
}

.farm-earned > span,
.farm-staked > span {
    display: block;
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.earned-amount,
.staked-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
}

.harvest-button {
    background-color: #7C3AED;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.harvest-button:hover {
    background-color: #6D28D9;
}

.harvest-button:disabled {
    background-color: #4B5563;
    cursor: not-allowed;
}

.staked-actions {
    display: flex;
    gap: 8px;
}

.minus-button,
.plus-button {
    width: 32px;
    height: 32px;
    background-color: #7C3AED;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minus-button:hover,
.plus-button:hover {
    background-color: #6D28D9;
}

.connect-button {
    width: 100%;
    background-color: #7C3AED;
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.connect-button:hover {
    background-color: #6D28D9;
}

.farm-card-footer {
    padding: 0 20px 20px;
}

.details-button {
    width: 100%;
    background: none;
    border: none;
    color: #6B7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.details-button:hover {
    color: #FFFFFF;
}

.details-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2D2D2D;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #FFFFFF;
    font-size: 14px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.links a {
    color: #7C3AED;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.links a:hover {
    color: #6D28D9;
}

.get-lp-button {
    background-color: #7C3AED;
    border-radius: 12px;
    padding: 8px 16px;
    color: #FFFFFF !important;
    text-align: center;
}

.get-lp-button:hover {
    background-color: #6D28D9;
} 