@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --lqd-primary-color: #FF69B4;
    --lqd-secondary-color: #FF1493;
    --lqd-text-color: #333;
    --lqd-background-color: #f9f9f9;
}

.lqd-features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    background-color: var(--lqd-background-color);
    color: var(--lqd-text-color);
}

.lqd-features-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.lqd-tab-button {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.lqd-tab-button.active {
    background-color: var(--lqd-primary-color);
    color: white;
}

.lqd-features-filter {
    margin-bottom: 20px;
    text-align: center;
}

.lqd-features-filter label {
    margin-right: 10px;
}

.lqd-tab-content {
    display: none;
}

.lqd-tab-content.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.lqd-feature-card {
    width: calc(33.333% - 20px);
    margin-bottom: 20px;
    padding: 12px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.lqd-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lqd-feature-name {
    font-size: 14px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--lqd-secondary-color);
}

.lqd-feature-description {
    font-size: 13px;
    color: var(--lqd-text-color);
    margin-bottom: 10px;
}

.lqd-feature-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
}

.lqd-feature-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.lqd-edit-feature,
.lqd-delete-feature,
.lqd-vote-feature,
.lqd-approve-feature {
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    background-color: var(--lqd-primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s;
}

.lqd-delete-feature {
    background-color: #f44336;
}

.lqd-vote-feature {
    background-color: var(--lqd-secondary-color);
}

.lqd-edit-feature:hover,
.lqd-delete-feature:hover,
.lqd-vote-feature:hover,
.lqd-approve-feature:hover {
    opacity: 0.8;
}

#lqd-suggest-feature-form,
#lqd-edit-feature-form {
    max-width: 500px;
    margin: 20px auto;
}

#lqd-suggest-feature-form input,
#lqd-suggest-feature-form textarea,
#lqd-edit-feature-form input,
#lqd-edit-feature-form textarea,
#lqd-edit-feature-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#lqd-suggest-feature-form button,
#lqd-edit-feature-form button {
    width: 100%;
    padding: 10px;
    background-color: var(--lqd-primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#lqd-suggest-feature-form button:hover,
#lqd-edit-feature-form button:hover {
    background-color: var(--lqd-secondary-color);
}

.lqd-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.lqd-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lqd-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lqd-close:hover,
.lqd-close:focus {
    color: var(--lqd-secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.lqd-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.lqd-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid var(--lqd-primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.lqd-feature-card.lqd-removed {
    opacity: 0;
    transform: scale(0.8);
}

@media (max-width: 768px) {
    .lqd-feature-card {
        width: 100%;
    }

    .lqd-features-tabs {
        flex-direction: column;
    }

    .lqd-tab-button {
        margin-bottom: 10px;
    }

    .lqd-feature-meta {
        flex-direction: column;
    }

    .lqd-feature-meta span {
        margin-bottom: 5px;
    }

    .lqd-feature-actions {
        flex-wrap: wrap;
    }

    .lqd-feature-actions button {
        margin-bottom: 5px;
    }
}