/* ====== Tags Index - Start ====== */
.tags-index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.tags-index-header {
    margin-bottom: 2rem;
}

.tags-header-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.tags-header-text {
    flex: 1;
}

.tags-index-title {
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.tags-index-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.tags-header-actions {
    flex-shrink: 0;
}

/* Alert Messages */
.tags-alert {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    border: none;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.tags-alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tags-alert-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.tags-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tags-alert-text {
    flex: 1;
    font-weight: 500;
    color: #059669;
}

.tags-alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tags-alert-close:hover {
    opacity: 1;
}

/* Tags Grid */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tag-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.tag-card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.tag-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-name {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.tag-count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tag-card-body {
    padding: 1.5rem;
    flex: 1;
}

.tag-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.tag-no-description {
    color: #9ca3af;
    font-style: italic;
}

.tag-card-actions {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tag-action-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.tags-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    text-align: center;
}

.tags-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    min-width: 180px;
}

.tags-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.tags-btn-view {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    flex: 1;
}

.tags-btn-view:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    text-decoration: none;
}

.tags-btn-edit {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
    flex: 1;
}

.tags-btn-edit:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-2px);
    text-decoration: none;
}

.tags-btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    width: 100%;
}

.tags-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* Empty State */
.tags-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.tags-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.tags-empty-title {
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tags-empty-text {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Delete Tag Modal Styling */
.delete-tag-modal-styled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-tag-header-styled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    padding: 2rem 2rem 1rem 2rem;
    position: relative;
}

.delete-tag-header-styled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    border-radius: 2px;
}

.delete-tag-title-styled {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
}

.delete-tag-close-styled {
    background: rgba(107, 114, 128, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.delete-tag-close-styled:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.delete-tag-body-styled {
    padding: 2rem;
}

.delete-tag-question {
    font-weight: 500;
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.delete-tag-warning-styled {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.3) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    border-left: 4px solid #f59e0b !important;
}

.delete-tag-warning-styled strong {
    color: #92400e !important;
    font-weight: 700;
}

.delete-tag-undone-text {
    color: #6b7280 !important;
    font-style: italic;
    text-align: center;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.delete-tag-footer-styled {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
    gap: 1rem;
    display: flex;
}

.delete-tag-form-inline {
    display: inline-flex;
    margin: 0;
}

.delete-tag-btn-delete-styled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3) !important;
    min-width: 140px;
}

.delete-tag-btn-delete-styled:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4) !important;
    color: white !important;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

.delete-tag-btn-cancel-styled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(107, 114, 128, 0.3) !important;
    color: #6b7280 !important;
    border-radius: 16px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    min-width: 140px;
}

.delete-tag-btn-cancel-styled:hover {
    background: #6b7280 !important;
    color: white !important;
    border-color: #6b7280 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3) !important;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .tags-header-content,
[data-bs-theme="dark"] .tag-card,
[data-bs-theme="dark"] .tags-empty-state {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .tags-index-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .tags-index-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .tag-card-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-bottom-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .tag-name {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .tag-description {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .tag-no-description {
    color: #718096;
}

[data-bs-theme="dark"] .tag-card-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .tags-btn-view {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(144, 205, 244, 0.3);
    color: #90cdf4;
}

[data-bs-theme="dark"] .tags-btn-view:hover {
    background: #90cdf4;
    color: #1a202c;
    border-color: #90cdf4;
}

[data-bs-theme="dark"] .tags-btn-edit {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(160, 174, 192, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .tags-btn-edit:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .tags-empty-title {
    color: #cbd5e0;
}

[data-bs-theme="dark"] .tags-empty-text {
    color: #a0aec0;
}

[data-bs-theme="dark"] .tags-alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.08) 100%);
}

[data-bs-theme="dark"] .tags-alert-success .tags-alert-text {
    color: #10b981;
}

[data-bs-theme="dark"] .delete-tag-modal-styled {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .delete-tag-header-styled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-bottom-color: rgba(239, 68, 68, 0.2);
}

[data-bs-theme="dark"] .delete-tag-title-styled {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .delete-tag-question {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .delete-tag-warning-styled {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    border-left-color: #fbbf24 !important;
}

[data-bs-theme="dark"] .delete-tag-warning-styled strong {
    color: #fbbf24 !important;
}

[data-bs-theme="dark"] .delete-tag-undone-text {
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .delete-tag-footer-styled {
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .delete-tag-btn-cancel-styled {
    background: rgba(45, 55, 72, 0.9) !important;
    border-color: rgba(160, 174, 192, 0.3) !important;
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .delete-tag-btn-cancel-styled:hover {
    background: #a0aec0 !important;
    color: #1a202c !important;
    border-color: #a0aec0 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tags-index-container {
        padding: 1rem;
    }

    .tags-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        text-align: center;
    }

    .tags-index-title {
        font-size: 2rem;
    }

    .tags-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tag-action-buttons {
        flex-direction: column;
    }

    .tags-btn {
        width: 100%;
    }

    .delete-tag-footer-styled {
        flex-direction: column;
    }

    .delete-tag-btn-delete-styled,
    .delete-tag-btn-cancel-styled {
        width: 100% !important;
    }

    .delete-tag-form-inline {
        width: 100%;
    }
}
/* ====== Tags Index - End ====== */


/* ====== Tag Create - Start ====== */
.create-tag-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.create-tag-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.create-tag-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
}

.create-tag-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.create-tag-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.create-tag-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.create-tag-form {
    padding: 2rem;
}

.create-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.create-form-label {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.create-form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 50px;
}

.create-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.create-form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Input Group with Prefix */
.create-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.create-input-prefix {
    position: absolute;
    left: 1.2rem;
    z-index: 3;
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
}

.create-input-with-prefix {
    padding-left: 2.5rem !important;
}

.create-textarea {
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

.create-validation-summary:empty {
    display: none;
}

.create-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.create-validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.create-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.create-btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
    cursor: pointer;
    border: none;
}

.create-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.create-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.create-btn-primary:active {
    transform: translateY(-1px);
}

.create-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.create-btn-secondary:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    text-decoration: none;
}

.create-btn-secondary:active {
    transform: translateY(-1px);
}

.create-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Input focus animations */
.create-form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.create-form-group:focus-within::before {
    opacity: 1;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .create-tag-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .create-tag-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .create-tag-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .create-tag-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .create-form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-form-control {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(144, 205, 244, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .create-form-control:focus {
    border-color: #90cdf4;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .create-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .create-input-prefix {
    color: #90cdf4;
}

[data-bs-theme="dark"] .create-btn-secondary {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(160, 174, 192, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .create-btn-secondary:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .create-form-hint {
    color: #718096;
    background: rgba(144, 205, 244, 0.08);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .create-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .create-tag-container {
        padding: 1rem;
    }

    .create-tag-form {
        padding: 1.5rem;
    }

    .create-tag-title {
        font-size: 1.8rem;
    }

    .create-form-actions {
        flex-direction: column;
    }

    .create-btn {
        width: 100%;
    }
}
/* ====== Tag Create - End ====== */


/* ====== Tag Edit - Start ====== */
.edit-tag-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.edit-tag-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.edit-tag-header {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
}

.edit-tag-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.edit-tag-title {
    font-size: 2.2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.edit-tag-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.edit-tag-form {
    padding: 2rem;
}

.edit-form-group {
    margin-bottom: 2rem;
    position: relative;
}

.edit-form-label {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.edit-form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
    min-height: 50px;
}

.edit-form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.edit-form-control::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Input Group with Prefix */
.edit-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.edit-input-prefix {
    position: absolute;
    left: 1.2rem;
    z-index: 3;
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none;
}

.edit-input-with-prefix {
    padding-left: 2.5rem !important;
}

.edit-textarea {
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

.edit-validation-summary:empty {
    display: none;
}

.edit-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #dc2626;
}

.edit-validation-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: block;
}

.edit-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.edit-btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
    cursor: pointer;
    border: none;
}

.edit-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.edit-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.edit-btn-primary:active {
    transform: translateY(-1px);
}

.edit-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(107, 114, 128, 0.3);
    color: #6b7280;
}

.edit-btn-secondary:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    text-decoration: none;
}

.edit-btn-secondary:active {
    transform: translateY(-1px);
}

.edit-form-hint {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-style: italic;
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Input focus animations */
.edit-form-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.edit-form-group:focus-within::before {
    opacity: 1;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .edit-tag-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .edit-tag-header {
    background: linear-gradient(135deg, rgba(144, 205, 244, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
}

[data-bs-theme="dark"] .edit-tag-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .edit-tag-subtitle {
    color: #a0aec0;
}

[data-bs-theme="dark"] .edit-form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-form-control {
    background: rgba(45, 55, 72, 0.8);
    border-color: rgba(144, 205, 244, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .edit-form-control:focus {
    border-color: #90cdf4;
    background: rgba(45, 55, 72, 1);
    box-shadow: 0 0 0 0.2rem rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .edit-form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="dark"] .edit-input-prefix {
    color: #90cdf4;
}

[data-bs-theme="dark"] .edit-btn-secondary {
    background: rgba(45, 55, 72, 0.9);
    border-color: rgba(160, 174, 192, 0.3);
    color: #a0aec0;
}

[data-bs-theme="dark"] .edit-btn-secondary:hover {
    background: #a0aec0;
    color: #1a202c;
    border-color: #a0aec0;
}

[data-bs-theme="dark"] .edit-form-hint {
    color: #718096;
    background: rgba(144, 205, 244, 0.08);
    border-color: rgba(144, 205, 244, 0.2);
}

[data-bs-theme="dark"] .edit-form-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .edit-tag-container {
        padding: 1rem;
    }

    .edit-tag-form {
        padding: 1.5rem;
    }

    .edit-tag-title {
        font-size: 1.8rem;
    }

    .edit-form-actions {
        flex-direction: column;
    }

    .edit-btn {
        width: 100%;
    }
}
/* ====== Tag Edit - End ====== */