/* Admin Panel Styles */
:root {
    --primary-color: #FFBE00;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --sidebar-width: 250px;
    --header-height: 70px;
    --card-border: 1px solid #dddddd7d;
}

body {
    font-family: "Arial", sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Container Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: #1a1a1a;
    color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    padding-bottom: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav i {
    width: 20px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.view-site {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease;
}

.view-site:hover {
    color: var(--primary-color);
}

.view-site i {
    margin-right: 10px;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Header Styles */
.admin-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.header-left h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Bar */
.admin-search {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.admin-search input {
    border: none;
    padding: 10px 15px;
    background: transparent;
    width: 200px;
}

.admin-search button {
    background: none;
    border: none;
    padding: 10px 15px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.admin-search button:hover {
    color: var(--primary-color);
}

/* Notifications */
.admin-notifications {
    position: relative;
}

.admin-notifications button {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.admin-notifications .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* Profile Section */
.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-info .role {
    font-size: 0.8rem;
    color: #666;
}

/* Content Area */
.admin-content {
    padding: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: var(--card-border);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    margin: 5px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    margin: 0;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

/* Content Sections */
.content-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: var(--card-border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.view-all {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all:hover {
    background: var(--primary-color);
    color: #000;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.activity-details {
    flex: 1;
}

.activity-details p {
    margin: 0;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #666;
}

.activity-action {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-action:hover {
    background: var(--primary-color);
    color: #000;
}

/* Users Table Styles */
.users-table-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.users-table th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.users-table td {
    color: var(--text-muted);
    vertical-align: middle;
}

.users-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.users-table .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.users-table .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.users-table .user-details {
    display: flex;
    flex-direction: column;
}

.users-table .user-name {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.users-table .user-email {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.users-table .user-role {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.users-table .role-admin {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.users-table .role-moderator {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.users-table .role-user {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.users-table .user-collections {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.users-table .collection-count {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-color);
}

.users-table .collection-count i {
    color: var(--text-muted);
}

.users-table .user-joined,
.users-table .user-last-login {
    white-space: nowrap;
    font-size: 0.875rem;
}

.users-table .user-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.users-table .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.users-table .status-active {
    background: #10b981;
}

.users-table .status-inactive {
    background: #6b7280;
}

.users-table .status-banned {
    background: #dc2626;
}

.users-table .user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.users-table .action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.users-table .action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.users-table .action-btn.edit {
    color: #3b82f6;
}

.users-table .action-btn.view {
    color: #10b981;
}

.users-table .action-btn.ban {
    color: #dc2626;
}

.users-table .action-btn.delete {
    color: #dc2626;
}

.users-table .checkbox-cell {
    width: 40px;
    text-align: center;
}

.users-table .custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bulk-actions select {
    min-width: 200px;
}

/* Responsive Table */
@media (max-width: 1200px) {
    .users-table .user-joined,
    .users-table .user-last-login {
        display: none;
    }
}

@media (max-width: 992px) {
    .users-table .user-collections {
        display: none;
    }
}

@media (max-width: 768px) {
    .users-table-wrapper {
        overflow-x: auto;
    }

    .users-table {
        min-width: 800px;
    }

    .users-table .user-email {
        display: none;
    }
}

@media (max-width: 576px) {
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-collapsed .admin-sidebar {
        transform: translateX(0);
    }

    .admin-header {
        padding: 0 15px;
    }

    .admin-search {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-action {
        align-self: flex-end;
    }

    .profile-info span {
        display: none;
    }
}


/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.role-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: var(--card-border);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.role-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.role-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.role-actions {
    display: flex;
    gap: 10px;
}

.role-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.role-actions button:hover {
    color: var(--primary-color);
}

.role-actions .delete-action:hover {
    color: #dc3545;
}

.role-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.role-permissions h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.permission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.permission-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.permission-list li.granted {
    color: #28a745;
}

.permission-list li.denied {
    color: #dc3545;
}

.permission-list li i {
    width: 16px;
    text-align: center;
}

/* Role Modal Styles */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.permission-group {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
}

.permission-group h6 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.form-check {
    margin-bottom: 8px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Role Badges */
.role-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-badge.admin {
    background: var(--primary-color);
    color: #000;
}

.role-badge.moderator {
    background: #17a2b8;
    color: #fff;
}

.role-badge.user {
    background: #6c757d;
    color: #fff;
}

/* Add New Button */
.add-new-btn {
    background: var(--primary-color);
    border: none;
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-new-btn:hover {
    background: #e6ab00;
    transform: translateY(-2px);
}

.add-new-btn i {
    font-size: 0.9rem;
}

/* Filters Section */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: var(--text-color);
}

.filter-btn {
    background: var(--primary-color);
    border: none;
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background: #e6ab00;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-group {
        flex-direction: column;
        width: 100%;
    }

    .filter-select,
    .filter-btn {
        width: 100%;
    }

    .permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* Collectibles Grid */
.collectibles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.collectible-card {
    background: var(--card-bg);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.collectible-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.collectible-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
}

.collectible-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collectible-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.collectible-card:hover .collectible-actions {
    opacity: 1;
}

.collectible-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collectible-actions button:hover {
    background: var(--primary-color);
    color: white;
}

.collectible-actions .delete-action:hover {
    background: var(--danger-color);
}

.collectible-info {
    padding: 1rem;
}

.collectible-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.collectible-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.collectible-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.collectible-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.collectible-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.collectible-status {
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.active {
    background: var(--success-light);
    color: var(--success-color);
}

.status-badge.draft {
    background: var(--warning-light);
    color: var(--warning-color);
}

.status-badge.archived {
    background: var(--danger-light);
    color: var(--danger-color);
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--card-border-radius);
    padding: 1rem;
    text-align: center;
}

.image-preview {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #f5f5f5;
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--card-border-radius);
    padding: 1rem;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gallery-item {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px dashed var(--border-color);
    background: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.gallery-item button:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .collectibles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .collectible-actions {
        opacity: 1;
    }
}

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.brand-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: var(--card-border);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.brand-header {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.brand-logo {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.brand-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.brand-card:hover .brand-actions {
    opacity: 1;
}

.brand-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-actions button:hover {
    background: var(--primary-color);
    color: white;
}

.brand-actions .delete-action:hover {
    background: var(--danger-color);
}

.brand-info {
    padding: 1.5rem;
}

.brand-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.brand-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.brand-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brand-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.brand-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tag {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }

    .brand-actions {
        opacity: 1;
    }

    .category-checkboxes {
        grid-template-columns: 1fr;
    }
}

/* Features List */
.feature-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    background: #fff;
    border-radius: 8px;
    border: var(--card-border);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: var(--card-border);
}

.feature-title {
    flex: 1;
}

.feature-title h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.feature-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.new {
    background: var(--primary-color);
    color: #000;
}

.status-badge.planned {
    background: #17a2b8;
    color: #fff;
}

.status-badge.in-progress {
    background: #ffc107;
    color: #000;
}

.status-badge.completed {
    background: #28a745;
    color: #fff;
}

.status-badge.declined {
    background: #dc3545;
    color: #fff;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.priority-badge.high {
    background: #dc3545;
    color: #fff;
}

.priority-badge.medium {
    background: #ffc107;
    color: #000;
}

.priority-badge.low {
    background: #28a745;
    color: #fff;
}

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

.feature-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-color);
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-actions button:hover {
    background: var(--primary-color);
    color: #000;
}

.feature-actions .delete-action:hover {
    background: var(--danger-color);
    color: #fff;
}

.feature-content {
    padding: 1.25rem;
}

.feature-description {
    margin: 0 0 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.feature-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-stats {
    display: flex;
    gap: 1.5rem;
}

.feature-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .feature-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-header {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-actions {
        align-self: flex-end;
    }

    .feature-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .feature-stats {
        grid-template-columns: 1fr;
    }
}

/* Bug Stats */
.bug-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bug-stats .stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bug-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bug-stats .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bug-stats .stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.bug-stats .stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.bug-stats .stat-info .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

/* Bugs List */
.bugs-list {
    margin-top: 2rem;
}

.bug-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.bug-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bug-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--card-border);
}

.bug-title {
    flex: 1;
}

.bug-title h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.bug-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.severity-badge,
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.severity-badge.critical {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.severity-badge.high {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.severity-badge.medium {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.severity-badge.low {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.new {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.status-badge.in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-badge.resolved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.closed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

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

.bug-actions button {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.bug-actions button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.bug-content {
    padding: 1rem;
}

.bug-description {
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.bug-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.meta-item i {
    font-size: 1rem;
}

.bug-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    font-size: 0.875rem;
}

.detail-item strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.detail-item span {
    color: var(--text-muted);
}

/* Bug Modal */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.modal-header {
    border-bottom-color: var(--card-border);
}

.modal-footer {
    border-top-color: var(--card-border);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bug-header {
        flex-direction: column;
        gap: 1rem;
    }

    .bug-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .bug-meta {
        gap: 1rem;
    }

    .bug-details {
        grid-template-columns: 1fr;
    }
} 
