/* Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn {
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-1px);
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

.navbar-brand {
    font-weight: 600;
}

.alert {
    border: none;
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Bio link styles */
.bio-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-link-item {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Drag and drop */
.sortable-item {
    cursor: move;
    transition: all 0.2s;
}

.sortable-item:hover {
    background-color: #f8f9fa;
}

.sortable-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Icon picker */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.icon-picker-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-picker-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.icon-picker-item.selected {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Image upload preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 1rem;
    border: 2px dashed #dee2e6;
    padding: 0.5rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e7f3ff;
    transform: scale(1.02);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Tab improvements */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
    color: #495057;
}

.nav-tabs .nav-link.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

/* Card improvements */
.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: #f8f9fa;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Button improvements */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* List group improvements */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem;
}

.list-group-item:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.list-group-item:last-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Bio Links Grid Layout */
.bio-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bio-links-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.bio-links-stats {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.bio-links-stats-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.bio-links-stats-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bio-links-stats-info-item:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin-left: 0.5rem;
}

.bio-links-stats-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bio-links-stats-search .form-control {
    max-width: 250px;
}

.bio-links-stats-search .form-select {
    max-width: 150px;
}

.bio-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bio-links-grid .col-12 {
    grid-column: 1 / -1;
}

.bio-link-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

.bio-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-link-card-header {
    position: relative;
    padding: 1.5rem 1.5rem 0;
}

.bio-link-card-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.bio-link-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}

.bio-link-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-link-card-body {
    padding: 0 1.5rem 1rem;
    text-align: center;
}

.bio-link-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.bio-link-card-url {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bio-link-card-url-text {
    font-size: 0.875rem;
    color: #6c757d;
    word-break: break-all;
}

.bio-link-card-copy-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.bio-link-card-copy-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.bio-link-card-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bio-link-card-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6c757d;
}

.bio-link-card-stats-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bio-link-card-badge {
    background: #000;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .bio-links-grid {
        grid-template-columns: 1fr;
    }
    
    .bio-links-stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bio-links-stats-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bio-links-stats-info-item::after {
        display: none;
    }
    
    .bio-links-stats-search {
        flex-direction: column;
        width: 100%;
    }
    
    .bio-links-stats-search .form-control,
    .bio-links-stats-search .form-select {
        width: 100%;
    }
}

/* Add Link or Content Modal */
.add-content-modal .modal-dialog {
    max-width: 800px;
}

.add-content-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.add-content-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.add-content-search .form-control {
    padding-left: 2.5rem;
}

.add-content-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.add-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.add-content-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.add-content-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.add-content-item-icon {
    font-size: 2rem;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.add-content-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    margin: 0;
}

.add-content-item-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .add-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Bio Editor Content Tab */
.bio-avatar-upload {
    position: relative;
}

.bio-avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid #dee2e6;
}

.bio-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 3rem;
}

.bio-avatar-upload-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    z-index: 2;
}

.bio-avatar-upload-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.bio-avatar-remove-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    z-index: 2;
}

.bio-avatar-remove-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Mobile Preview */
.bio-mobile-preview-container {
    position: sticky;
    top: 20px;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.bio-mobile-preview {
    width: 320px;
    max-width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 8px solid #1a1a1a;
    position: relative;
}

.bio-mobile-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.bio-mobile-preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.bio-mobile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

/* Apply border-radius based on avatarStyle class */
.bio-mobile-avatar.rounded,
.bio-mobile-avatar.circle {
    border-radius: 50%;
}

.bio-mobile-avatar.square {
    border-radius: 8px;
}

.bio-mobile-avatar.pill {
    border-radius: 70px;
}

.bio-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure img inside avatar also has correct border-radius */
.bio-mobile-avatar.rounded img,
.bio-mobile-avatar.circle img {
    border-radius: 50%;
}

.bio-mobile-avatar.square img {
    border-radius: 8px;
}

.bio-mobile-avatar.pill img {
    border-radius: 70px;
}

.bio-avatar-placeholder-mobile {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 3rem;
}

/* Apply border-radius to placeholder based on avatarStyle class */
.bio-avatar-placeholder-mobile.rounded,
.bio-avatar-placeholder-mobile.circle {
    border-radius: 50%;
}

.bio-avatar-placeholder-mobile.square {
    border-radius: 8px;
}

.bio-avatar-placeholder-mobile.pill {
    border-radius: 70px;
}

.bio-mobile-name {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verified-badge {
    font-size: 1rem;
    color: #4dabf7;
}

.bio-mobile-content {
    padding: 1.5rem;
    background: #f8f9fa;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.bio-mobile-item {
    margin-bottom: 1rem;
}

.bio-mobile-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}

.bio-mobile-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.bio-mobile-text {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

.bio-mobile-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 1rem 0;
}

.bio-mobile-divider {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 1.5rem 0;
}

.bio-mobile-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bio-mobile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Product Type Styling */
.bio-mobile-product {
    border-radius: 12px;
    overflow: hidden;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.bio-mobile-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bio-mobile-product-link:hover .bio-mobile-product {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bio-mobile-product-image {
    margin-bottom: 1.25rem;
    overflow: hidden;
    border-radius: 8px;
}

.bio-mobile-product-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.bio-mobile-product-link:hover .bio-mobile-product-image img {
    transform: scale(1.05);
}

/* Product info - base styles */
.bio-mobile-product-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

/* Higher specificity for public view */
.bio-content .bio-mobile-item .bio-mobile-product-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.bio-mobile-product-text {
    flex: 1;
    padding: 1rem;
    margin: 5px;
}

/* Public view uses smaller padding */
.bio-content .bio-mobile-item .bio-mobile-product-text {
    flex: 1;
    padding: 0.1rem;
    margin: 5px;
}

.bio-mobile-product-amount {
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    padding-left: 1rem;
}

.bio-content .bio-mobile-item .bio-mobile-product-amount {
    flex-shrink: 0;
    text-align: right;
    padding-left: 1rem;
}

.bio-mobile-product-name {
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.bio-mobile-product-description {
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Product Preview in Editor */
.bio-mobile-product-preview {
    border-radius: 12px;
    overflow: hidden;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bio-mobile-product-image-preview {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.bio-mobile-product-image-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.bio-mobile-product-info-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.bio-mobile-product-text-preview {
    flex: 1;
    padding: 0;
    margin: 5px;
}

.bio-mobile-product-amount-preview {
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    text-align: right;
    padding-left: 1rem;
}

.bio-mobile-product-name-preview {
    margin: 0 0 0.5rem 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.bio-mobile-product-description-preview {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Improved Map Preview */
.bio-mobile-map-preview {
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.bio-mobile-map-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-mobile-map-preview i {
    font-size: 1.5rem;
}

.bio-mobile-map-preview span {
    font-weight: 500;
    flex: 1;
}

/* Improved Embed Preview */
.bio-mobile-embed-preview {
    padding: 1rem;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.bio-mobile-embed-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-mobile-embed-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #495057;
}

.bio-mobile-embed-info {
    flex: 1;
}

.bio-mobile-embed-info strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.bio-mobile-embed-info small {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Improved YouTube Preview */
.bio-mobile-youtube-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.bio-mobile-youtube-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-mobile-youtube-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.bio-mobile-youtube-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.bio-mobile-youtube-overlay i {
    font-size: 1.5rem;
    color: #ff0000;
}

.bio-mobile-youtube-overlay span {
    font-weight: 500;
    flex: 1;
}

.bio-mobile-item-placeholder {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bio-mobile-empty {
    text-align: center;
    padding: 3rem 1rem;
}

@media (max-width: 992px) {
    .bio-mobile-preview-container {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

/* Design Tab - Header Layout Options */
.header-layout-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-layout-item {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-layout-item:hover {
    transform: translateY(-2px);
}

.header-layout-item.active {
    transform: translateY(-2px);
}

.header-layout-item.active .header-layout-preview {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.header-layout-preview {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.header-layout-bg {
    width: 100%;
    height: 100%;
}

.header-layout-avatar,
.header-layout-name {
    transition: all 0.2s;
}

/* Design Tab - Themes Grid */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

.theme-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    background: white;
}

.theme-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-item.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.theme-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    gap: 0.5rem;
    position: relative;
}

.theme-preview-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-preview-button {
    width: 80%;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .header-layout-options {
        justify-content: center;
    }
    
    .header-layout-item {
        max-width: 120px;
    }
    
    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.75rem;
    }
}

/* Social Links Preview */
.social-links-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    transition: all 0.2s;
    color: white;
    font-size: 1.2rem;
}

.social-link-preview:hover {
    transform: translateY(-2px);
    color: white;
}

.social-link-preview.social-link-facebook {
    background-color: #1877f2;
}

.social-link-preview.social-link-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link-preview.social-link-twitter {
    background-color: #1da1f2;
}

/* Social Links Styles */
.social-links-preview.rounded .social-link-preview {
    border-radius: 8px;
}

.social-links-preview.square .social-link-preview {
    border-radius: 0;
}

.social-links-preview.circle .social-link-preview {
    border-radius: 50%;
}

.social-links-preview.minimal .social-link-preview {
    background: transparent;
    border: 2px solid currentColor;
    width: 36px;
    height: 36px;
}

.social-links-preview.minimal .social-link-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.social-links-preview.minimal .social-link-instagram {
    color: #e6683c;
    border-color: #e6683c;
}

.social-links-preview.minimal .social-link-twitter {
    color: #1da1f2;
    border-color: #1da1f2;
}

/* Social Links Tab - Style Options */
.social-style-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-style-option {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.social-style-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.social-style-option.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    background: #f0f7ff;
}

.social-style-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.social-icon-preview {
    transition: all 0.2s;
}

/* Social Links Preview Item */
.social-link-preview-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.social-link-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Social Links List */
.social-link-item {
    transition: all 0.2s;
}

.social-link-item:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .social-style-options {
        flex-direction: column;
    }
    
    .social-style-option {
        max-width: 100%;
    }
}

/* Statistics Page Styles */
.statistics-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.statistics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.statistics-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.statistics-card-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statistics-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.statistics-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s;
    font-weight: 500;
}

.statistics-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
    color: #495057;
}

.statistics-tabs .nav-link.active {
    border-bottom-color: #007bff;
    color: #007bff;
    background: transparent;
}

.statistics-tabs .nav-link i {
    margin-right: 0.5rem;
}

.date-range-display {
    display: flex;
    align-items: center;
}

.recent-activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-activity-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.recent-activity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.recent-activity-badges .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.recent-activity-time {
    font-size: 0.875rem;
}

.flag-icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .statistics-card-value {
        font-size: 1.5rem;
    }
    
    .statistics-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .statistics-tabs .nav-link i {
        margin-right: 0.25rem;
    }
    
    .date-range-display {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .date-range-display input,
    .date-range-display button {
        width: 100% !important;
    }
    
    .recent-activity-badges {
        flex-direction: column;
    }
}

/* Settings Tab - Toggle Switches */
.form-check.form-switch {
    padding-left: 0;
    margin-bottom: 0;
}

.form-check-input[type="checkbox"] {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input[type="checkbox"]:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Settings Tab - Form Layout */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section h6 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 1rem;
}

.settings-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.settings-toggle-item:last-child {
    border-bottom: none;
}

.settings-toggle-item .form-label {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #212529;
}

.settings-toggle-item small {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* File Input Styling */
.file-input-wrapper {
    position: relative;
}

.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    padding: 0.375rem 0.75rem;
    margin-right: 0.75rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    font-weight: 500;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #0b5ed7;
}

/* Webkit file input button */
.form-control[type="file"]::-webkit-file-upload-button {
    padding: 0.375rem 0.75rem;
    margin-right: 0.75rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    font-weight: 500;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background-color: #0b5ed7;
}

/* Image Preview */
.img-thumbnail {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.25rem;
    background-color: #fff;
}

/* URL Shortener Page Styles */
.url-shortener-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.url-shortener-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
}

.url-shortener-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.url-shortener-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    transition: all 0.2s;
}

.url-shortener-stat-item:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.url-shortener-stat-item i {
    font-size: 1.25rem;
    color: #4f46e5;
}

.url-shortener-stat-item strong {
    font-size: 1.1rem;
    color: #212529;
}

.url-shortener-stat-item span {
    color: #6c757d;
    font-size: 0.875rem;
}

.url-shortener-form-card {
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #ffffff;
}

.url-shortener-form-card .card-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.url-shortener-form-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-shortener-form-card .card-body {
    padding: 1.5rem;
}

.url-shortener-form-group {
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.url-shortener-form-group:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.url-shortener-form-group:focus-within {
    border-color: #4f46e5;
    border-width: 2px;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.url-shortener-form-group label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.url-shortener-form-group .form-control,
.url-shortener-form-group .form-select {
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s;
    background-color: #ffffff;
}

.url-shortener-form-group .form-control:hover,
.url-shortener-form-group .form-select:hover {
    border-color: #94a3b8;
}

.url-shortener-form-group .form-control:focus,
.url-shortener-form-group .form-select:focus {
    border-color: #4f46e5;
    border-width: 2px;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    outline: none;
}

.url-shortener-form-group textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.url-shortener-cloaking-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.2s;
}

.url-shortener-cloaking-card:hover {
    border-color: #4f46e5;
}

.url-shortener-cloaking-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}

.url-shortener-cloaking-card .card-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #495057;
}

.url-shortener-cloaking-card .card-body {
    padding: 1.25rem;
    background: #fafbfc;
}

.url-shortener-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.url-shortener-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    color: white;
}

.url-shortener-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.url-shortener-table-card {
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.url-shortener-table-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.url-shortener-table-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-shortener-table {
    margin: 0;
}

.url-shortener-table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.url-shortener-table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.url-shortener-table tbody tr {
    transition: all 0.2s;
}

.url-shortener-table tbody tr:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
    transform: scale(1.01);
}

.url-shortener-table tbody tr:last-child td {
    border-bottom: none;
}

.url-shortener-short-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.url-shortener-short-url a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    transition: color 0.2s;
}

.url-shortener-short-url a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.url-shortener-original-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.875rem;
}

.url-shortener-clicks {
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.url-shortener-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.url-shortener-actions .btn {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s;
}

.url-shortener-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.url-shortener-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.url-shortener-empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.url-shortener-empty-state h5 {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.url-shortener-empty-state p {
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

.url-shortener-result {
    margin-top: 1.5rem;
}

.url-shortener-result .alert {
    border-radius: 8px;
    border: 2px solid;
    padding: 1.25rem;
}

.url-shortener-result .alert-success {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.url-shortener-result .alert-danger {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.url-shortener-result .alert-info {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.url-shortener-result .alert-warning {
    border-color: #f59e0b;
    background-color: #fffbeb;
}

.url-shortener-result .input-group {
    margin-top: 1rem;
}

.url-shortener-result .input-group .form-control {
    border-radius: 8px 0 0 8px;
    border-right: none;
    border: 2px solid #cbd5e1;
}

.url-shortener-result .input-group .form-control:focus {
    border-color: #4f46e5;
    border-right: none;
}

.url-shortener-result .input-group .btn {
    border-radius: 0 8px 8px 0;
    border-left: none;
    border: 2px solid #4f46e5;
    background: #4f46e5;
    color: white;
}

.url-shortener-result .input-group .btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

.url-shortener-tips-card {
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    position: sticky;
    top: 20px;
    background: #ffffff;
}

.url-shortener-tips-card .card-header {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.url-shortener-tips-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-shortener-tips-card .card-body {
    padding: 1.5rem;
}

.url-shortener-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-shortener-tips-list li {
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.url-shortener-tips-list li:last-child {
    margin-bottom: 0;
}

.url-shortener-tips-list li:hover {
    padding-left: 1rem;
    border-color: #cbd5e1;
    background: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.url-shortener-tips-list li i {
    color: #28a745;
    font-size: 1.1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.url-shortener-tips-list li span {
    color: #495057;
    line-height: 1.5;
}

.url-shortener-badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Advanced Options Collapse */
.url-shortener-advanced-toggle {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.url-shortener-advanced-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.url-shortener-advanced-toggle[aria-expanded="true"],
.url-shortener-advanced-toggle.active {
    background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
    border-color: #4f46e5;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.url-shortener-advanced-toggle-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
    font-size: 0.95rem;
}

.url-shortener-advanced-toggle[aria-expanded="true"] .url-shortener-advanced-toggle-title,
.url-shortener-advanced-toggle.active .url-shortener-advanced-toggle-title {
    color: #4f46e5;
}

.url-shortener-advanced-toggle-icon {
    transition: transform 0.3s ease;
    color: #64748b;
    font-size: 1rem;
}

.url-shortener-advanced-toggle[aria-expanded="true"] .url-shortener-advanced-toggle-icon,
.url-shortener-advanced-toggle.active .url-shortener-advanced-toggle-icon {
    transform: rotate(180deg);
    color: #4f46e5;
}

.url-shortener-advanced-content {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

.url-shortener-advanced-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
    transition: all 0.2s;
}

.url-shortener-advanced-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.url-shortener-advanced-section:last-child {
    margin-bottom: 0;
}

.url-shortener-advanced-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.url-shortener-advanced-content .form-check-switch {
    padding: 0.5rem 0;
}

/* Form groups inside advanced sections should not have extra border */
.url-shortener-advanced-section .url-shortener-form-group {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.url-shortener-advanced-section .url-shortener-form-group:hover {
    background: transparent;
    box-shadow: none;
}

.url-shortener-advanced-section .url-shortener-form-group:focus-within {
    background: transparent;
    border: none;
    box-shadow: none;
}

.url-shortener-advanced-section .url-shortener-form-group .form-control,
.url-shortener-advanced-section .url-shortener-form-group .form-select {
    background: #ffffff;
    border: 2px solid #cbd5e1;
}

.url-shortener-advanced-section .url-shortener-form-group .form-control:hover,
.url-shortener-advanced-section .url-shortener-form-group .form-select:hover {
    border-color: #94a3b8;
}

.url-shortener-advanced-section .url-shortener-form-group .form-control:focus,
.url-shortener-advanced-section .url-shortener-form-group .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

@media (max-width: 992px) {
    .url-shortener-tips-card {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .url-shortener-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .url-shortener-header h1 {
        font-size: 1.5rem;
    }
    
    .url-shortener-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .url-shortener-stat-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .url-shortener-table {
        font-size: 0.875rem;
    }
    
    .url-shortener-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .url-shortener-table tbody td {
        padding: 1rem 0.5rem;
    }
    
    .url-shortener-actions {
        flex-direction: column;
    }
    
    .url-shortener-actions .btn {
        width: 100%;
    }
    
    .url-shortener-original-url {
        max-width: 150px;
    }
    
    .url-shortener-empty-state {
        padding: 2rem 1rem;
    }
    
    .url-shortener-empty-state i {
        font-size: 3rem;
    }
}

/* Mobile Preview Container */
.bio-mobile-preview-container {
    position: sticky;
    top: 20px;
}

.bio-mobile-preview {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 8px solid #1a1a1a;
    border-top-width: 40px;
    position: relative;
}

.bio-mobile-preview::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 0 0 6px 6px;
}

.bio-mobile-preview-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    background: #f8f9fa;
}

.bio-mobile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-avatar-placeholder-mobile {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
}

.bio-mobile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verified-badge {
    font-size: 1rem;
}

.bio-mobile-content {
    padding: 1rem;
}

.bio-mobile-item {
    margin-bottom: 0.75rem;
}

.bio-mobile-link-btn {
    display: block;
    padding: 0.875rem 1rem;
    background-color: #007bff;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bio-mobile-link-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: white;
}

.bio-mobile-item-placeholder {
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
