* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0f8a80;
    --primary-light: #4db6ac;
    --primary-dark: #0a5c55;
    --secondary-color: #ff6b6b;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius: 10px;
    --radius-lg: 20px;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 32px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 600px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: var(--dark-gray);
}

.search-input::placeholder {
    color: #888;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 2px solid var(--light-gray);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-color);
}

.btn-danger {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-request {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    color: var(--white);
}

.btn-request:hover {
    background: linear-gradient(135deg, #00a884 0%, #00b894 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--white);
    border-radius: 25px;
    text-decoration: none;
    color: var(--dark-gray);
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Plugins Grid */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    position: relative;
    padding-right: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.section-desc {
    color: #666;
    margin-top: 5px;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.plugin-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.plugin-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.plugin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.plugin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-color), #ff8e8e);
}

.plugin-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.plugin-title {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

.plugin-version {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 8px;
}

.plugin-body {
    padding: 25px;
}

.plugin-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
    min-height: 90px;
}

.plugin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.plugin-tag {
    background: var(--light-gray);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--dark-gray);
    transition: all 0.3s;
}

.plugin-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
}

.plugin-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
    color: #777;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 10px;
}

.plugin-actions {
    display: flex;
    gap: 10px;
}

.download-btn {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
}

.report-plugin-btn {
    padding: 12px;
    background: #e17055;
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-plugin-btn:hover {
    background: #d63031;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--secondary-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--white);
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 64px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    font-size: 36px;
    color: var(--white);
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #a3e4e0;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #d1f2eb;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: var(--white);
    padding-right: 10px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #d1f2eb;
}

.footer-contact i {
    color: #a3e4e0;
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a3e4e0;
    font-size: 14px;
}

/* Animations */
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .header-search {
        max-width: 100%;
        width: 100%;
    }
    
    .search-button span {
        display: none;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .plugin-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .plugin-actions {
        flex-direction: column;
    }
}