/**
 * Fragments CSS - Minimal styling for service fragments
 * Main styling comes from Tailwind and ds- CSS variables
 */

/* Fragment containers */
.fragment-container {
    width: 100%;
}

.fragment-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--ds-text-muted);
}

.fragment-error {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #fca5a5;
}

/* Widget grid layout */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Widget card base */
.widget-card {
    background: var(--ds-bg-card);
    border: 1px solid var(--ds-border-light);
    border-radius: 1rem;
    padding: 1.5rem;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds-text-heading);
}

.widget-content {
    color: var(--ds-text-secondary);
}

/* Metric displays */
.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ds-text-heading);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--ds-text-muted);
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

/* List items in widgets */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ds-border-light);
}

.widget-list-item:last-child {
    border-bottom: none;
}

/* ========================================
   COMPONENT LIBRARY STYLES
   ======================================== */

.component-library {
    padding: var(--spacing-lg, 1.5rem);
    max-width: 1400px;
    margin: 0 auto;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg, 1.5rem);
    flex-wrap: wrap;
    gap: var(--spacing-md, 1rem);
}

.header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.header-content h1 i {
    margin-right: 0.75rem;
    color: var(--brand-primary, var(--ds-accent));
}

.header-content p {
    color: var(--theme-text-secondary, var(--ds-text-muted));
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.library-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg, 1.5rem);
    flex-wrap: wrap;
    gap: var(--spacing-md, 1rem);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-secondary, var(--ds-text-muted));
}

.search-box input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.625rem;
    border: 1px solid var(--theme-border-medium, var(--ds-border-light));
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--theme-bg-primary, var(--ds-bg-card));
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.search-box input:focus {
    outline: none;
    border-color: var(--brand-primary, var(--ds-accent));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--theme-border-medium, var(--ds-border-light));
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--theme-bg-primary, var(--ds-bg-card));
    color: var(--theme-text-primary, var(--ds-text-primary));
    cursor: pointer;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.component-card {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.component-card:hover {
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
    transform: translateY(-2px);
}

.component-card .card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.component-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary-light, rgba(59, 130, 246, 0.1));
    color: var(--brand-primary, var(--ds-accent));
    border-radius: 0.625rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.component-card .component-info {
    flex: 1;
    min-width: 0;
}

.component-card .component-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.component-description {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
    margin: 0 0 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.component-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
}

.component-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.star-rating {
    color: #fbbf24;
}

.star-rating i {
    font-size: 0.75rem;
}

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

.card-actions .btn {
    flex: 1;
}

.badges {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.75rem 1.25rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.empty-state p {
    margin: 0 0 1.25rem;
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.75rem 1.25rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.component-library .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: var(--theme-text-secondary, var(--ds-text-muted));
    font-size: 0.875rem;
}

.page-buttons {
    display: flex;
    gap: 0.25rem;
}

.page-buttons button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--theme-border-medium, var(--ds-border-light));
    border-radius: 0.375rem;
    background: var(--theme-bg-primary, var(--ds-bg-card));
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
    transition: background 0.2s, border-color 0.2s;
}

.page-buttons button:hover {
    background: var(--theme-bg-hover, var(--ds-bg-hover));
}

.page-buttons button.active {
    background: var(--brand-primary, var(--ds-accent));
    border-color: var(--brand-primary, var(--ds-accent));
    color: white;
}

/* Component Forms */
.component-form-container {
    padding: var(--spacing-lg, 1.5rem);
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.1));
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--theme-border-light, var(--ds-border-light));
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--theme-border-medium, var(--ds-border-light));
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--theme-text-primary, var(--ds-text-primary));
    background: var(--theme-bg-primary, var(--ds-bg-card));
}

.form-group textarea {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8125rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary, var(--ds-accent));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border-light, var(--ds-border-light));
}

#properties-list {
    margin-bottom: 1rem;
}

.property-item {
    margin-bottom: 0.5rem;
}

.property-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.property-row input,
.property-row select {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--theme-border-medium, var(--ds-border-light));
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background: var(--theme-bg-primary, var(--ds-bg-card));
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.property-row .btn-sm {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .library-header {
        flex-direction: column;
    }
    
    .library-filters {
        flex-direction: column;
    }
    
    .search-box {
        max-width: none;
    }
    
    .component-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Login Required */
.login-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.login-card {
    text-align: center;
    padding: 3rem;
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
}

.login-card i.fa-lock {
    font-size: 3rem;
    color: var(--brand-primary, var(--ds-accent));
    margin-bottom: 1rem;
}

.login-card h2 {
    margin: 0 0 0.5rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.login-card p {
    color: var(--theme-text-secondary, var(--ds-text-muted));
    margin: 0 0 1.5rem;
}

.login-card .btn {
    margin: 0 0.5rem;
}

/* ========================================
   COMPONENT EDITOR STYLES (Create/Edit)
   ======================================== */

.component-editor {
    padding: var(--spacing-lg, 1.5rem);
    max-width: 900px;
    margin: 0 auto;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg, 1.5rem);
}

.editor-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.editor-form {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.editor-form .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--theme-border-light, var(--ds-border-light));
}

.editor-form .form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.editor-form .form-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.section-description {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
    margin: 0 0 1rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--theme-bg-secondary, var(--ds-bg-elevated));
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.radio-option:hover {
    border-color: var(--brand-primary, var(--ds-accent));
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--brand-primary, var(--ds-accent));
}

.radio-option i {
    color: var(--theme-text-secondary, var(--ds-text-muted));
    font-size: 1rem;
}

.radio-option:has(input:checked) {
    border-color: var(--brand-primary, var(--ds-accent));
    background: rgba(59, 130, 246, 0.05);
}

.radio-option:has(input:checked) i {
    color: var(--brand-primary, var(--ds-accent));
}

/* Component View */
.component-view {
    padding: var(--spacing-lg, 1.5rem);
    max-width: 1000px;
    margin: 0 auto;
}

.view-header {
    margin-bottom: var(--spacing-lg, 1.5rem);
}

.component-detail {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border-radius: 0.75rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--theme-border-light, var(--ds-border-light));
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--theme-text-secondary, var(--ds-text-muted));
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Rating Stars in Modal */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars i {
    font-size: 2rem;
    cursor: pointer;
    color: var(--theme-border-medium, #d1d5db);
    transition: color 0.2s, transform 0.2s;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #fbbf24;
    transform: scale(1.1);
}

#rating-text {
    text-align: center;
    color: var(--theme-text-secondary, var(--ds-text-muted));
    margin-bottom: 1.5rem;
}

/* Preview Content */
#preview-content {
    background: var(--theme-bg-secondary, var(--ds-bg-elevated));
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-height: 200px;
}

/* Responsive for Editor */
@media (max-width: 768px) {
    .component-editor,
    .component-view {
        padding: var(--spacing-md, 1rem);
    }
    
    .editor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* ========================================
   MY COMPONENTS PAGE - ENHANCED STYLES
   ======================================== */

/* Improved filter layout for My Components page */
.component-library .library-filters {
    background: var(--theme-bg-secondary, var(--ds-bg-elevated));
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    gap: 1rem;
}

.component-library .search-box {
    flex: 1;
    min-width: 250px;
    max-width: none;
}

.component-library .search-box input {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border-color: var(--theme-border-medium, var(--ds-border-light));
    height: 42px;
}

.component-library .filter-group select {
    height: 42px;
    min-width: 140px;
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border-color: var(--theme-border-medium, var(--ds-border-light));
}

/* Enhanced My Component Card Styles */
.component-card.my-component {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,
        var(--theme-bg-primary, var(--ds-bg-card)) 0%,
        var(--theme-bg-secondary, var(--ds-bg-elevated)) 100%);
    border: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-card.my-component::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary, #8b5cf6), var(--brand-secondary, #06b6d4));
    opacity: 0;
    transition: opacity 0.3s;
}

.component-card.my-component:hover::before {
    opacity: 1;
}

.component-card.my-component:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-primary, var(--ds-accent));
}

/* Card header with icon and info */
.component-card.my-component .card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.component-card.my-component .component-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0.875rem;
    font-size: 1.5rem;
}

.component-card.my-component .component-info {
    flex: 1;
    min-width: 0;
}

.component-card.my-component .component-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--theme-text-primary, var(--ds-text-primary));
}

/* Status and Visibility Badges */
.component-card.my-component .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.component-card.my-component .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.component-card.my-component .badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.component-card.my-component .badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.component-card.my-component .badge-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.component-card.my-component .badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Description */
.component-card.my-component .component-description {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
    margin: 0 0 1rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Stats Row */
.component-card.my-component .component-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.875rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--theme-border-light, var(--ds-border-light));
    border-bottom: 1px solid var(--theme-border-light, var(--ds-border-light));
}

.component-card.my-component .component-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--theme-text-secondary, var(--ds-text-muted));
}

.component-card.my-component .component-stats .stat i {
    color: var(--brand-primary, var(--ds-accent));
    width: 16px;
    text-align: center;
}

/* Action Buttons */
.component-card.my-component .card-actions {
    display: flex;
    gap: 0.625rem;
    margin-top: auto;
}

.component-card.my-component .card-actions .btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.component-card.my-component .card-actions .btn-secondary {
    background: var(--theme-bg-primary, var(--ds-bg-card));
    border-color: var(--theme-border-medium, var(--ds-border-light));
    color: var(--theme-text-primary, var(--ds-text-primary));
}

.component-card.my-component .card-actions .btn-secondary:hover {
    background: var(--brand-primary, var(--ds-accent));
    border-color: var(--brand-primary, var(--ds-accent));
    color: white;
}

.component-card.my-component .card-actions .btn-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.component-card.my-component .card-actions .btn-success:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.component-card.my-component .card-actions .btn-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.component-card.my-component .card-actions .btn-warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.component-card.my-component .card-actions .btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    flex: 0;
    padding: 0.625rem;
    min-width: 42px;
}

.component-card.my-component .card-actions .btn-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* Responsive adjustments for My Components */
@media (max-width: 768px) {
    .component-card.my-component .card-actions {
        flex-wrap: wrap;
    }
    
    .component-card.my-component .card-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .component-card.my-component .card-actions .btn-danger {
        flex: 0 0 42px;
    }
}

/* Empty state enhancement */
.component-library .empty-state {
    background: var(--theme-bg-secondary, var(--ds-bg-elevated));
    border: 2px dashed var(--theme-border-light, var(--ds-border-light));
    border-radius: 1rem;
    padding: 4rem 2rem;
}

.component-library .empty-state i {
    font-size: 4rem;
    color: var(--brand-primary, var(--ds-accent));
    opacity: 0.3;
}

.component-library .empty-state h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.component-library .empty-state .btn {
    margin-top: 1rem;
}
