/* assets/css/frontend.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* Reset og grundlæggende styling */
.dtk-medlemsportal-dashboard * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.dtk-medlemsportal-dashboard {
    font-family: "Chivo";
    color: #333;
    margin: 0px 0px;
    line-height: 1.5;
}

/* Dashboard Container */
.dtk-dashboard-container {
    display: flex;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
	border-top:1px solid #f2f2f2;
    min-height: 100vh!important;
}

/* Side Menu */
.dtk-side-menu {
    width: 280px;
    background-color: #f8f9fa;
    border-right: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.dtk-user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e1e1;
    background-color: #fff;

}

.dtk-avatar {
    margin-right: 12px;
}

.dtk-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.dtk-user-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #2c3e50;
}

.dtk-user-details p {
    font-size: 13px;
    color: #7f8c8d;
}

.dtk-navigation {
    padding: 15px 0;
    flex-grow: 1;
}

.dtk-menu-items {
    list-style: none;
}

.dtk-menu-header {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #95a5a6;
    padding: 12px 20px 5px;
    letter-spacing: 0.5px;
}

.dtk-menu-item {
    margin: 2px 0;
}

.dtk-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.dtk-menu-link:hover, 
.dtk-active .dtk-menu-link {
    background-color: rgba(52, 152, 219, 0.08);
    border-left-color: #3498db;
    color: #3498db;
}

.dtk-menu-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
    color: inherit;
}

.dtk-menu-text {
    flex-grow: 1;
    font-size: 14px;
}

.dtk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background-color: #ecf0f1;
    color: #7f8c8d;
    border-radius: 11px;
    font-size: 12px;
    padding: 0 6px;
}

.dtk-active .dtk-badge {
    background-color: #3498db;
    color: #fff;
}

/* Mobile Menu Toggle */
.dtk-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;

    margin: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dtk-mobile-menu-toggle:hover,
.dtk-mobile-menu-toggle.active {
    background-color: #2980b9;
}

/* Content Area */
.dtk-content-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.dtk-content-header {
    margin-bottom: 25px;
}

.dtk-content-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.dtk-content-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Container til fillisten */
.dtk-files-container {
    margin-top: 24px;
    width: 100%;
}

.dtk-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0;
    justify-content: start;
}

/* Minimalistisk og moderne filkort design */
.dtk-file-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 300px; /* Fast højde for konsistent layout */
}

.dtk-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

/* Header sektion med filtype badge */
.dtk-file-icon {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For billedfiler */
.dtk-file-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For andre filtyper - moderne badge design */
.dtk-ext-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    position: relative;
}

.dtk-ext-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1e40af);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dtk-file-card:hover .dtk-ext-badge::before {
    opacity: 1;
}

/* Filtype-specifikke farver */
.dtk-ext-badge.pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.dtk-ext-badge.doc, .dtk-ext-badge.docx {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.dtk-ext-badge.xls, .dtk-ext-badge.xlsx {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.dtk-ext-badge.zip, .dtk-ext-badge.rar {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* Status indikator i øverste højre hjørne */
.dtk-file-status {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dtk-file-status.new {
    background: #3b82f6;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% { 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(59, 130, 246, 0.4); 
    }
    50% { 
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 8px rgba(59, 130, 246, 0); 
    }
}

/* Fil information sektion */
.dtk-file-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.dtk-file-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    min-height: 42px; /* Plads til 2 linjer */
}

.dtk-file-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.dtk-file-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.dtk-file-size {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.dtk-file-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dtk-file-downloads {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    font-weight: 600;
}

/* Download knap sektion */
.dtk-file-actions {
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.dtk-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    width: 100%;
    min-height: 44px;
}

.dtk-download-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.dtk-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.dtk-download-btn svg {
    margin-right: 0; /* Reset da vi bruger gap */
    transition: transform 0.2s ease;
}

.dtk-download-btn:hover svg {
    transform: translateY(-1px);
}

/* Loading state for download */
.dtk-download-btn.downloading {
    pointer-events: none;
    background: #64748b;
    box-shadow: none;
}

.dtk-download-btn.downloading svg {
    animation: spin 1s linear infinite;
}

/* Hover effect på hele kortet */
.dtk-file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dtk-file-card:hover::before {
    opacity: 1;
}

/* Animation for når kort indlæses */
.dtk-file-card {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for flere kort */
.dtk-file-card:nth-child(1) { animation-delay: 0ms; }
.dtk-file-card:nth-child(2) { animation-delay: 75ms; }
.dtk-file-card:nth-child(3) { animation-delay: 150ms; }
.dtk-file-card:nth-child(4) { animation-delay: 225ms; }
.dtk-file-card:nth-child(5) { animation-delay: 300ms; }
.dtk-file-card:nth-child(6) { animation-delay: 375ms; }

/* Empty state styling */
.dtk-empty-files-message {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    margin-top: 24px;
    transition: all 0.3s ease;
    grid-column: 1 / -1; /* Span hele grid bredden */
}

.dtk-empty-files-message:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
}

.dtk-empty-icon {
    margin-bottom: 20px;
    color: #94a3b8;
}

.dtk-empty-files-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.dtk-empty-files-message p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #64748b;
    line-height: 1.5;
}

.dtk-secondary-message {
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-weight: 500;
}

/* Responsivt design */
@media (max-width: 768px) {
    .dtk-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .dtk-file-card {
        height: 260px;
    }
    
    .dtk-file-icon {
        height: 100px;
    }
    
    .dtk-file-details {
        padding: 16px;
    }
    
    .dtk-file-actions {
        padding: 0 16px 16px;
    }
    
    .dtk-download-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dtk-files-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dtk-file-card {
        height: 240px;
    }
    
    .dtk-file-icon {
        height: 80px;
    }
    
    .dtk-ext-badge {
        width: 48px;
        height: 48px;
        font-size: 12px;
        border-radius: 12px;
    }
    
    .dtk-file-details {
        padding: 12px;
    }
    
    .dtk-file-title {
        font-size: 14px;
    }
    
    .dtk-file-meta-row {
        font-size: 11px;
    }
    
    .dtk-file-actions {
        padding: 0 12px 12px;
    }
    
    .dtk-download-btn {
        padding: 12px 16px;
        min-height: 40px;
    }
    
    .dtk-empty-files-message {
        padding: 48px 20px;
    }
}

/* Print styles */
@media print {
    .dtk-file-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .dtk-file-icon {
        background: #f8fafc !important;
    }
    
    .dtk-download-btn {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dtk-file-card {
        border: 2px solid #000;
    }
    
    .dtk-file-title {
        color: #000;
    }
    
    .dtk-download-btn {
        background: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dtk-file-card,
    .dtk-download-btn,
    .dtk-ext-badge::before {
        transition: none;
    }
    
    .dtk-file-card {
        animation: none;
    }
    
    .dtk-file-status.new {
        animation: none;
    }
}

/* Focus states for accessibility */
.dtk-download-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.dtk-download-btn:focus:not(:focus-visible) {
    outline: none;
}

/* MINIMALISTISK MEDLEMMER DESIGN - Erstatter den eksisterende medlemmer styling */

/* Container til medlemslisten */
.dtk-members-container {
    margin-top: 24px;
    width: 100%;
}

.dtk-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0;
    justify-content: start; /* Starter i venstre side */
}

/* Minimalistisk medlemskort design */
.dtk-member-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 200px; /* Fast højde for konsistent layout */
}

.dtk-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.dtk-member-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Banner sektion i toppen af kortet */
.dtk-member-banner {
    height: 80px;
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.dtk-member-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtk-member-banner.default-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Avatar placeret over banneret til venstre */
.dtk-member-avatar {
    position: absolute;
    top: 50px; /* Placeret så den overlapper banneret */
    left: 20px;
    z-index: 10;
    width: 156px!important;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.dtk-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain!important;
    border-radius: 9px; /* Lidt mindre end container for at få border effect */
}

/* Medlemsinfo placeret under banneret */
.dtk-member-info {
    padding: 32px 20px 16px 20px; /* Top padding for at give plads til avatar */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 0;
}

.dtk-member-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dtk-member-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.dtk-member-email {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
    word-break: break-word;
    line-height: 1.4;
}

/* Rolle badge i bunden af kortet */
.dtk-member-role {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.dtk-member-card:hover .dtk-member-role {
    background: #e2e8f0;
}

/* Rolle-specifikke farver */
.dtk-member-role.role-administrator {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.dtk-member-role.role-editor {
    background: #fffbeb;
    color: #d97706;
    border-color: #fed7aa;
}

.dtk-member-role.role-author {
    background: #f0fdf4;
    color: #059669;
    border-color: #bbf7d0;
}

.dtk-member-role.role-contributor {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.dtk-member-role.role-subscriber {
    background: #fafaf9;
    color: #57534e;
    border-color: #e7e5e4;
}

/* Hover effects */
.dtk-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #64748b, #94a3b8);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dtk-member-card:hover::before {
    opacity: 1;
}

/* Status indikator (valgfri - kan bruges til online status) */
.dtk-member-status {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #ffffff;
    opacity: 0.8;
}

/* Content header styling der matcher profil-stylingen */
.dtk-content-header {
    margin-bottom: 24px;
    width: 100%;
}

.dtk-content-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.dtk-content-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* Loading state for medlemskort */
.dtk-member-card.loading {
    background: #f8fafc;
    pointer-events: none;
}

.dtk-member-card.loading .dtk-member-banner {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsivt design for medlemskort */
@media (max-width: 768px) {
    .dtk-members-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .dtk-member-card {
        height: 180px;
    }
    
    .dtk-member-banner {
        height: 70px;
    }
    
    .dtk-member-avatar {
        top: 42px;
        left: 16px;
        width: 48px;
        height: 48px;
    }
    
    .dtk-member-info {
        padding: 28px 16px 12px 16px;
    }
    
    .dtk-member-name {
        font-size: 15px;
    }
    
    .dtk-member-email {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dtk-members-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dtk-member-card {
        height: 160px;
    }
    
    .dtk-member-banner {
        height: 60px;
    }
    
    .dtk-member-avatar {
        top: 35px;
        left: 12px;
        width: 44px;
        height: 44px;
    }
    
    .dtk-member-info {
        padding: 24px 12px 12px 12px;
    }
    
    .dtk-member-name {
        font-size: 14px;
    }
    
    .dtk-member-email {
        font-size: 11px;
    }
    
    .dtk-member-role {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Animation for når kort indlæses */
.dtk-member-card {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for flere kort */
.dtk-member-card:nth-child(1) { animation-delay: 0ms; }
.dtk-member-card:nth-child(2) { animation-delay: 50ms; }
.dtk-member-card:nth-child(3) { animation-delay: 100ms; }
.dtk-member-card:nth-child(4) { animation-delay: 150ms; }
.dtk-member-card:nth-child(5) { animation-delay: 200ms; }
.dtk-member-card:nth-child(6) { animation-delay: 250ms; }

/* Hover effect på avatar */
.dtk-member-card:hover .dtk-member-avatar {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Focus states for accessibility */
.dtk-member-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 12px;
}

.dtk-member-link:focus:not(:focus-visible) {
    outline: none;
}

/* Print styles */
@media print {
    .dtk-member-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .dtk-member-banner {
        background: #f8fafc !important;
    }
}

/* MODERNE PROFILE STYLES - OPDATERET */

/* Profile View Styles - Moderniseret */
.dtk-profile-view {
    max-width: 1200px;
    margin: 0 auto;
    background: #f8fafc;
    min-height: 100vh;
}

.dtk-profile-header {
    position: relative;
    margin-bottom: 0;
    background: #fff;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* Moderne kompakt banner - kun 50px høj */
.dtk-profile-banner {
    height: 200px!important;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dtk-profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtk-default-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dtk-banner-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Moderne profil info sektion */
.dtk-profile-info {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    position: relative;
    margin-top: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid #e2e8f0;
}

.dtk-profile-avatar {
    margin-right: 25px;
    position: relative;
    z-index: 2;
	object-fit:contain!important;
}

.dtk-profile-avatar img {
    width: 100%!important;
    height: 100%!important;
    border-radius: 50%;
    border: 4px solid #fff;
    transition: transform 0.3s ease;
	object-fit:contain!important;
}

.dtk-profile-avatar img:hover {
    transform: scale(1.05);
}



.dtk-profile-details {
    flex-grow: 1;
    color: #1a202c;
}

.dtk-profile-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1a202c;
    letter-spacing: -0.025em;
}

.dtk-profile-email {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.dtk-profile-role {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.dtk-profile-role:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}

.dtk-profile-role.role-administrator {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.dtk-profile-role.role-administrator:hover {
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.4);
}

.dtk-profile-role.role-editor {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.dtk-profile-role.role-editor:hover {
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
}

.dtk-profile-role.role-author {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.dtk-profile-role.role-author:hover {
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
}

.dtk-profile-meta {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.dtk-member-since {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dtk-member-since:hover {
    background: #e2e8f0;
}

.dtk-profile-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Moderniserede knapper */
.dtk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #3b82f6;
    color: #fff;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.dtk-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}

.dtk-btn svg {
    margin-right: 8px;
}

.dtk-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.dtk-btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 14px 0 rgba(100, 116, 139, 0.3);
}

.dtk-btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 6px 20px 0 rgba(100, 116, 139, 0.4);
}

.dtk-btn-outline {
    background: #fff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.1);
}

.dtk-btn-outline:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.3);
}

/* Moderne content grid */
.dtk-profile-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dtk-profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Moderne sektioner */
.dtk-profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dtk-profile-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.dtk-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.dtk-section-title svg {
    color: #3b82f6;
}

.dtk-profile-bio {
    color: #374151;
    line-height: 1.7;
    font-size: 16px;
}

/* Moderne galleri */
.dtk-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.dtk-profile-gallery .dtk-gallery-item {
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dtk-profile-gallery .dtk-gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dtk-profile-gallery .dtk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dtk-profile-gallery .dtk-gallery-item:hover img {
    transform: scale(1.1);
}

.dtk-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px 12px 12px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dtk-profile-gallery .dtk-gallery-item:hover .dtk-gallery-caption {
    opacity: 1;
}

/* Moderne sidebar */
.dtk-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 30px;
    height: fit-content;
}

.dtk-sidebar-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dtk-sidebar-section:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dtk-sidebar-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtk-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dtk-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.dtk-contact-item:hover {
    background: #f1f5f9;
}

.dtk-contact-item svg {
    color: #3b82f6;
    flex-shrink: 0;
}

/* Tilføj dette til din frontend.css fil - CSS for tom galleri sektion */

/* Tom galleri styling */
.dtk-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.dtk-gallery-empty:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-1px);
}

.dtk-gallery-empty-icon {
    margin-bottom: 16px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.dtk-gallery-empty:hover .dtk-gallery-empty-icon {
    color: #3b82f6;
}

.dtk-gallery-empty p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.dtk-gallery-empty .dtk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.dtk-gallery-empty .dtk-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.dtk-gallery-empty .dtk-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.dtk-gallery-empty .dtk-btn svg {
    transition: transform 0.2s ease;
}

.dtk-gallery-empty .dtk-btn:hover svg {
    transform: scale(1.1);
}

/* Responsive design for tom galleri */
@media (max-width: 768px) {
    .dtk-gallery-empty {
        padding: 32px 16px;
        min-height: 160px;
    }
    
    .dtk-gallery-empty p {
        font-size: 14px;
    }
    
    .dtk-gallery-empty .dtk-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dtk-gallery-empty {
        padding: 24px 12px;
        min-height: 140px;
    }
    
    .dtk-gallery-empty-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .dtk-gallery-empty p {
        font-size: 13px;
        margin-bottom: 16px;
    }
}




/* Moderne statistikker */
.dtk-profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dtk-stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.dtk-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.dtk-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 4px;
}

.dtk-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Moderne empty state */
.dtk-profile-empty {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.dtk-profile-empty:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.dtk-empty-icon {
    margin-bottom: 24px;
    color: #94a3b8;
}

.dtk-profile-empty h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.dtk-profile-empty p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

/* Moderne lightbox */
.dtk-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.dtk-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dtk-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dtk-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtk-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#dtk-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive design */
@media (max-width: 1024px) {
    .dtk-profile-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .dtk-profile-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .dtk-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
    }

    .dtk-profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .dtk-profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .dtk-profile-name {
        font-size: 28px;
    }

    .dtk-profile-actions {
        margin-top: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dtk-profile-section,
    .dtk-sidebar-section {
        padding: 24px 20px;
    }

    .dtk-profile-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

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

@media (max-width: 480px) {
    .dtk-profile-content {
        padding: 16px;
    }

    .dtk-profile-info {
        padding: 20px 16px;
    }

    .dtk-profile-name {
        font-size: 24px;
    }

    .dtk-profile-section,
    .dtk-sidebar-section {
        padding: 20px 16px;
    }

    .dtk-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .dtk-profile-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}



/* INLINE EDITING STYLES */

/* Edit Buttons */
.dtk-inline-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Larger and white edit icons */
.dtk-inline-edit-btn svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2.5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.dtk-inline-edit-btn:hover {
    background: rgba(37, 99, 235, 0.98);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.dtk-inline-edit-btn:hover svg {
    stroke: #ffffff;
    stroke-width: 3;
    transform: scale(1.05);
}

/* Alternative edit icon (pen) - uncomment to use */
/*
.dtk-inline-edit-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.dtk-inline-edit-btn svg {
    display: none;
}
*/

.dtk-inline-edit-btn:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Show edit buttons on hover */
.dtk-profile-banner:hover .dtk-inline-edit-btn,
.dtk-profile-details:hover .dtk-inline-edit-btn,
.dtk-profile-section:hover .dtk-inline-edit-btn {
    opacity: 1;
    transform: scale(1);
}

/* Special positioning for section titles */
.dtk-section-title .dtk-inline-edit-btn {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    opacity: 1;
    transform: scale(1);
    width: 36px;
    height: 36px;
}

.dtk-section-title .dtk-inline-edit-btn svg {
    width: 18px;
    height: 18px;
}

button.dtk-edit-profile-info {
	display:none!important;
}

.dtk-profile-details .dtk-inline-edit-btn {
    top: 8px;
    right: 8px;
}

/* Modal Styles */
.dtk-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dtk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.dtk-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dtk-modal-large {
    max-width: 900px;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.dtk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.dtk-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.dtk-modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtk-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.dtk-modal-body {
    padding: 32px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.dtk-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px 32px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Form Styles */
.dtk-form-group {
    margin-bottom: 24px;
}

.dtk-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.dtk-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.dtk-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Banner Upload Styles */
.dtk-banner-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 200px;
}

.dtk-banner-upload-area:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.02);
}

.dtk-current-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dtk-current-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtk-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dtk-current-banner:hover .dtk-banner-overlay {
    opacity: 1;
}

.dtk-upload-placeholder {
    padding: 60px 20px;
    text-align: center;
    background: #f8fafc;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dtk-upload-icon {
    margin-bottom: 16px;
    color: #94a3b8;
}

.dtk-upload-placeholder p {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 16px;
}

/* Gallery Edit Styles */
.dtk-gallery-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 8px;
}

.dtk-gallery-edit-item {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dtk-gallery-edit-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dtk-gallery-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.dtk-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtk-gallery-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dtk-gallery-edit-item:hover .dtk-gallery-overlay {
    opacity: 1;
}

.dtk-caption-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: background-color 0.3s ease;
}

.dtk-caption-input:focus {
    background-color: #f8fafc;
}

.dtk-gallery-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dtk-gallery-add:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.02);
}

.dtk-add-gallery-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 20px;
}

.dtk-add-gallery-btn:hover {
    color: #3b82f6;
}

.dtk-add-gallery-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* Sortable placeholder */
.dtk-gallery-placeholder {
    background: #f1f5f9;
    border: 2px dashed #3b82f6;
    border-radius: 12px;
    height: 200px;
}

/* Button Icon Styles */
.dtk-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dtk-btn-icon.dtk-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dtk-btn-icon.dtk-btn-danger:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

/* Spinner Animation */
.dtk-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.dtk-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
}

.dtk-toast-show {
    transform: translateX(0);
}

.dtk-toast-success {
    border-left: 4px solid #10b981;
    color: #059669;
}

.dtk-toast-success svg {
    color: #10b981;
}

.dtk-toast-error {
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.dtk-toast-error svg {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dtk-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .dtk-modal-header,
    .dtk-modal-body,
    .dtk-modal-footer {
        padding: 20px;
    }
    
    .dtk-gallery-edit-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .dtk-modal-footer {
        flex-direction: column;
    }
    
    .dtk-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .dtk-modal-header,
    .dtk-modal-body,
    .dtk-modal-footer {
        padding: 16px;
    }
    
    .dtk-gallery-edit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .dtk-inline-edit-btn {
        width: 36px;
        height: 36px;
    }
    
    .dtk-inline-edit-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .dtk-section-title .dtk-inline-edit-btn {
        width: 32px;
        height: 32px;
    }
    
    .dtk-section-title .dtk-inline-edit-btn svg {
        width: 16px;
        height: 16px;
    }
}










/* MINIMALISTISK PROFIL DESIGN - Erstatter den gamle integrerede profil styling */

/* Container med maksimal bredde og centrering */
.dtk-profile-view-integrated {
    width: 100%;
    max-width: 60%!important; /* Begrænset bredde for bedre læsbarhed */
    
    background: transparent;
    min-height: auto;
}

/* Rent og minimalistisk profil header */
.dtk-profile-header-integrated {
    position: relative;
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Mindre og mere elegant banner */
.dtk-profile-header-integrated .dtk-profile-banner {
    height: 200px;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dtk-profile-header-integrated .dtk-profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtk-profile-header-integrated .dtk-default-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dtk-profile-header-integrated .dtk-banner-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Cleaner profil info layout */
.dtk-profile-header-integrated .dtk-profile-info {
    display: flex;
    align-items: flex-start;
    padding: 24px 32px 28px;
    position: relative;
    margin-top: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
    gap: 20px;
}

.dtk-profile-header-integrated .dtk-profile-avatar {
    margin-right: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.dtk-profile-header-integrated .dtk-profile-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 12px; /* Mindre border-radius for moderne look */
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.dtk-profile-header-integrated .dtk-profile-avatar img:hover {
    transform: scale(1.02);
}

.dtk-profile-header-integrated .dtk-profile-details {
    flex-grow: 1;
    color: #1e293b;
    min-width: 0; /* Forhindrer overflow */
}

.dtk-profile-header-integrated .dtk-profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.dtk-profile-header-integrated .dtk-profile-email {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 400;
}

.dtk-profile-header-integrated .dtk-profile-role {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.dtk-profile-header-integrated .dtk-profile-role:hover {
    background: #e2e8f0;
    transform: none;
    box-shadow: none;
}

.dtk-profile-header-integrated .dtk-profile-role.role-administrator {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.dtk-profile-header-integrated .dtk-profile-role.role-editor {
    background: #fffbeb;
    color: #d97706;
    border-color: #fed7aa;
}

.dtk-profile-header-integrated .dtk-profile-role.role-author {
    background: #f0fdf4;
    color: #059669;
    border-color: #bbf7d0;
}

.dtk-profile-header-integrated .dtk-profile-meta {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
}

.dtk-profile-header-integrated .dtk-member-since {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
}

.dtk-profile-header-integrated .dtk-member-since:hover {
    background: transparent;
    color: #475569;
}

/* Kompakt og organiseret content layout */
.dtk-profile-content-integrated {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
}

.dtk-profile-content-integrated .dtk-profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Minimalistiske sektioner */
.dtk-profile-content-integrated .dtk-profile-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: border-color 0.2s ease;
}

.dtk-profile-content-integrated .dtk-profile-section:hover {
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: none;
}

.dtk-profile-content-integrated .dtk-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.dtk-profile-content-integrated .dtk-section-title svg {
    color: #64748b;
    width: 18px;
    height: 18px;
}

.dtk-profile-content-integrated .dtk-profile-bio {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* Rent galleri design */
.dtk-profile-content-integrated .dtk-profile-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.dtk-profile-content-integrated .dtk-profile-gallery .dtk-gallery-item {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.dtk-profile-content-integrated .dtk-profile-gallery .dtk-gallery-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.dtk-profile-content-integrated .dtk-profile-gallery .dtk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dtk-profile-content-integrated .dtk-profile-gallery .dtk-gallery-item:hover img {
    transform: scale(1.03);
}

.dtk-profile-content-integrated .dtk-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #ffffff;
    padding: 12px 8px 8px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dtk-profile-content-integrated .dtk-profile-gallery .dtk-gallery-item:hover .dtk-gallery-caption {
    opacity: 1;
}

/* Sidebar som cards under main content på mindre skærme */
.dtk-profile-content-integrated .dtk-profile-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    position: static;
    height: auto;
    margin-top: 8px;
}

.dtk-profile-content-integrated .dtk-sidebar-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: border-color 0.2s ease;
}

.dtk-profile-content-integrated .dtk-sidebar-section:hover {
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dtk-profile-content-integrated .dtk-sidebar-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dtk-profile-content-integrated .dtk-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dtk-profile-content-integrated .dtk-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 400;
    padding: 8px 0;
    background: transparent;
    border-radius: 0;
    transition: color 0.2s ease;
    border-bottom: 1px solid #f8fafc;
}

/* KONTAKTINFO HOVER EDIT - Tilføj til eksisterende kontaktinfo CSS */

/* Hover edit funktionalitet for kontaktinfo sektion */
.dtk-contact-section {
    position: relative;
    transition: all 0.2s ease;
}

.dtk-contact-section:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.dtk-contact-section h4 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dtk-contact-section h4 .dtk-inline-edit-btn {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    opacity: 0;
    transform: scale(1);
    width: 24px;
    height: 24px;
    background: #f8fafc;
    border-color: #e2e8f0;
    transition: opacity 0.2s ease;
}

.dtk-contact-section:hover h4 .dtk-inline-edit-btn {
    opacity: 1;
}

.dtk-contact-section h4 .dtk-inline-edit-btn svg {
    width: 10px;
    height: 10px;
}

/* Contact item styling */
.dtk-contact-item {
    position: relative;
    transition: background-color 0.2s ease;
}

.dtk-contact-placeholder {
    opacity: 0.6;
    font-style: italic;
}

.dtk-contact-placeholder:hover {
    opacity: 0.8;
    background: #f8fafc;
}

/* Contact edit modal */
.dtk-contact-edit-modal .dtk-modal-content {
    max-width: 480px;
}

.dtk-contact-form-group {
    margin-bottom: 20px;
}

.dtk-contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.dtk-contact-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.dtk-contact-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dtk-contact-form-group input::placeholder {
    color: #9ca3af;
}

.dtk-contact-form-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* Validation styling */
.dtk-contact-form-group.error input {
    border-color: #ef4444;
}

.dtk-contact-form-group.error .dtk-contact-form-help {
    color: #ef4444;
}

.dtk-contact-form-group.success input {
    border-color: #10b981;
}

.dtk-contact-validation {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

.dtk-contact-validation.error {
    color: #ef4444;
}

.dtk-contact-validation.success {
    color: #10b981;
}

/* Phone number formatting helpers */
.dtk-phone-format-examples {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

.dtk-phone-format-examples h6 {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dtk-phone-format-examples ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dtk-phone-format-examples li {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

/* Save button loading state */
.dtk-save-contact.saving {
    pointer-events: none;
    opacity: 0.7;
}

.dtk-save-contact.saving svg {
    animation: spin 1s linear infinite;
}

/* Contact info animations */
.dtk-contact-item {
    animation: fadeInUp 0.3s ease-out;
}

.dtk-contact-item.updating {
    opacity: 0.6;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

.dtk-contact-item.updated {
    background: #f0fdf4;
    border-radius: 6px;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        background: #f0fdf4;
    }
    50% {
        background: #dcfce7;
    }
    100% {
        background: transparent;
    }
}

/* Mobile responsive for contact form */
@media (max-width: 480px) {
    .dtk-contact-edit-modal .dtk-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .dtk-contact-form-group input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .dtk-sidebar-section h4 .dtk-inline-edit-btn {
        opacity: 1; /* Always visible on mobile */
    }
}

/* Print styles */
@media print {
    .dtk-inline-edit-btn {
        display: none !important;
    }
    
    .dtk-contact-placeholder {
        display: none;
    }
}

.dtk-profile-content-integrated .dtk-contact-item:last-child {
    border-bottom: none;
}

.dtk-profile-content-integrated .dtk-contact-item:hover {
    background: transparent;
    color: #334155;
}

.dtk-profile-content-integrated .dtk-contact-item svg {
    color: #64748b;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Minimalistiske statistikker */
.dtk-profile-content-integrated .dtk-profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dtk-profile-content-integrated .dtk-stat-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    transition: none;
    border: none;
    border-bottom: 1px solid #f8fafc;
}

.dtk-profile-content-integrated .dtk-stat-item:hover {
    transform: none;
    box-shadow: none;
    border-color: #f8fafc;
    background: transparent;
}

.dtk-profile-content-integrated .dtk-stat-number {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.dtk-profile-content-integrated .dtk-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Elegant empty state */
.dtk-profile-content-integrated .dtk-profile-empty {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: border-color 0.2s ease;
}

.dtk-profile-content-integrated .dtk-profile-empty:hover {
    border-color: #e2e8f0;
    background: #ffffff;
}

.dtk-profile-content-integrated .dtk-empty-icon {
    margin-bottom: 16px;
    color: #cbd5e1;
}

.dtk-profile-content-integrated .dtk-profile-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 8px 0;
}

.dtk-profile-content-integrated .dtk-profile-empty p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Subtile edit buttons */
.dtk-profile-view-integrated .dtk-inline-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #64748b;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.95);
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dtk-profile-view-integrated .dtk-inline-edit-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
}

.dtk-profile-view-integrated .dtk-inline-edit-btn:hover {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Show edit buttons on hover */
.dtk-profile-header-integrated:hover .dtk-inline-edit-btn,
.dtk-profile-section:hover .dtk-inline-edit-btn {
    opacity: 1;
    transform: scale(1);
}

/* Section title edit buttons */
.dtk-section-title .dtk-inline-edit-btn {
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    opacity: 0.6;
    transform: scale(1);
    width: 28px;
    height: 28px;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.dtk-section-title:hover .dtk-inline-edit-btn {
    opacity: 1;
}

.dtk-section-title .dtk-inline-edit-btn svg {
    width: 12px;
    height: 12px;
}

/* Responsivt design */
@media (max-width: 768px) {
    .dtk-profile-view-integrated {
        max-width: 100%;
        margin: 0;
    }

    .dtk-profile-header-integrated .dtk-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px 24px;
        gap: 12px;
    }

    .dtk-profile-header-integrated .dtk-profile-avatar img {
        width: 56px;
        height: 56px;
    }

    .dtk-profile-header-integrated .dtk-profile-name {
        font-size: 18px;
    }

    .dtk-profile-content-integrated .dtk-profile-section,
    .dtk-profile-content-integrated .dtk-sidebar-section {
        padding: 20px 16px;
    }

    .dtk-profile-content-integrated .dtk-profile-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .dtk-profile-content-integrated .dtk-profile-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dtk-profile-header-integrated .dtk-profile-banner {
        height: 80px;
    }

    .dtk-profile-header-integrated .dtk-profile-info {
        padding: 16px 12px 20px;
    }

    .dtk-profile-content-integrated .dtk-profile-section,
    .dtk-profile-content-integrated .dtk-sidebar-section {
        padding: 16px 12px;
    }

    .dtk-profile-content-integrated .dtk-profile-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .dtk-profile-content-integrated .dtk-profile-empty {
        padding: 32px 16px;
    }
}














/* KONTAKTINFO MODAL CSS - Tilføj til din frontend.css */

/* Contact edit modal */
.dtk-contact-edit-modal .dtk-modal-content {
    max-width: 480px;
}

.dtk-contact-form-group {
    margin-bottom: 20px;
}

.dtk-contact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.dtk-contact-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.dtk-contact-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dtk-contact-form-group input::placeholder {
    color: #9ca3af;
}

.dtk-contact-form-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* Validation styling */
.dtk-contact-form-group.error input {
    border-color: #ef4444;
}

.dtk-contact-form-group.error .dtk-contact-form-help {
    color: #ef4444;
}

.dtk-contact-form-group.success input {
    border-color: #10b981;
}

.dtk-contact-validation {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

.dtk-contact-validation.error {
    color: #ef4444;
}

.dtk-contact-validation.success {
    color: #10b981;
}

/* Phone number formatting helpers */
.dtk-phone-format-examples {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
}

.dtk-phone-format-examples h6 {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dtk-phone-format-examples ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dtk-phone-format-examples li {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

/* Save button loading state */
.dtk-save-contact.saving {
    pointer-events: none;
    opacity: 0.7;
}

.dtk-save-contact.saving svg {
    animation: spin 1s linear infinite;
}

/* Contact info animations */
.dtk-contact-item {
    animation: fadeInUp 0.3s ease-out;
}

.dtk-contact-item.updating {
    opacity: 0.6;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

.dtk-contact-item.updated {
    background: #f0fdf4;
    border-radius: 6px;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        background: #f0fdf4;
    }
    50% {
        background: #dcfce7;
    }
    100% {
        background: transparent;
    }
}

/* Placeholder styling */
.dtk-contact-placeholder {
    opacity: 0.6;
    font-style: italic;
}

.dtk-contact-placeholder:hover {
    opacity: 0.8;
    background: #f8fafc;
}

/* Mobile responsive for contact form */
@media (max-width: 480px) {
    .dtk-contact-edit-modal .dtk-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .dtk-contact-form-group input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .dtk-contact-section h4 .dtk-inline-edit-btn {
        opacity: 1; /* Always visible on mobile */
    }
}























/* AVATAR EDIT FUNKTIONALITET */

/* Avatar container med hover-effekt */
.dtk-profile-avatar {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Kun på egen profil */
.dtk-profile-view[data-is-own-profile="true"] .dtk-profile-avatar,
.dtk-profile-view-integrated[data-is-own-profile="true"] .dtk-profile-avatar {
    cursor: pointer;
}

/* Avatar overlay ved hover */
.dtk-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex-direction: column;
    gap: 4px;
}

.dtk-profile-avatar:hover .dtk-avatar-overlay {
    opacity: 1;
}

.dtk-avatar-overlay svg {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.dtk-avatar-overlay-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Avatar ring-effekt ved hover */
.dtk-profile-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dtk-profile-avatar:hover::before {
    opacity: 1;
}

/* Forbedret avatar styling */
.dtk-profile-avatar img {
    transition: all 0.3s ease;
    display: block;
}

.dtk-profile-avatar:hover img {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Avatar upload modal */
.dtk-avatar-modal .dtk-modal-content {
    max-width: 480px;
}

.dtk-avatar-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.dtk-current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dtk-current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dtk-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dtk-avatar-placeholder svg {
    width: 40px;
    height: 40px;
}

/* Avatar upload område */
.dtk-avatar-upload-area {
    width: 100%;
    min-height: 120px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
}

.dtk-avatar-upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.dtk-avatar-upload-icon {
    color: #64748b;
    transition: color 0.3s ease;
}

.dtk-avatar-upload-area:hover .dtk-avatar-upload-icon {
    color: #3b82f6;
}

.dtk-avatar-upload-text {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.dtk-avatar-upload-hint {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin: 0;
}

/* Avatar crop område (hvis du vil tilføje crop-funktionalitet senere) */
.dtk-avatar-crop-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Responsive styling */
@media (max-width: 768px) {
    .dtk-avatar-overlay svg {
        width: 16px;
        height: 16px;
    }
    
    .dtk-avatar-overlay-text {
        font-size: 9px;
    }
    
    .dtk-current-avatar {
        width: 100px;
        height: 100px;
    }
}

/* Integreret profil avatar styling */
.dtk-profile-header-integrated .dtk-profile-avatar::before {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-width: 2px;
}

.dtk-profile-header-integrated .dtk-avatar-overlay {
    border-radius: 12px; /* Match den firkantede avatar */
}

.dtk-profile-header-integrated .dtk-avatar-overlay svg {
    width: 16px;
    height: 16px;
}

.dtk-profile-header-integrated .dtk-avatar-overlay-text {
    font-size: 9px;
}

/* Loading state for avatar upload */
.dtk-avatar-uploading {
    pointer-events: none;
    opacity: 0.7;
}

.dtk-avatar-upload-area.uploading {
    border-color: #3b82f6;
    background: #eff6ff;
}

.dtk-avatar-upload-area.uploading .dtk-avatar-upload-icon {
    animation: spin 1s linear infinite;
}

/* Success state */
.dtk-avatar-upload-success {
    border-color: #10b981;
    background: #f0fdf4;
    color: #059669;
}
















/* ========================================
   LOGIN FORMULAR STYLES
   ======================================== */

.dtk-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    font-family: "Chivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dtk-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.dtk-login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.dtk-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

/* Header */
.dtk-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.dtk-login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #3b82f6;
}

.dtk-login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.dtk-login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Error message */
.dtk-login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

.dtk-login-error svg {
    flex-shrink: 0;
}

/* Form */
.dtk-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dtk-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dtk-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.dtk-form-group label svg {
    color: #64748b;
}

.dtk-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1e293b;
}

.dtk-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dtk-input::placeholder {
    color: #94a3b8;
}

/* Password wrapper */
.dtk-password-wrapper {
    position: relative;
}

.dtk-password-wrapper .dtk-input {
    padding-right: 48px;
}

.dtk-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.dtk-toggle-password:hover {
    color: #3b82f6;
}

/* Form options */
.dtk-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.dtk-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
}

.dtk-remember-me input[type="checkbox"] {
    display: none;
}

.dtk-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #ffffff;
}

.dtk-remember-me input[type="checkbox"]:checked + .dtk-checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.dtk-remember-me input[type="checkbox"]:checked + .dtk-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.dtk-forgot-password {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dtk-forgot-password:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Login button */
.dtk-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    margin-top: 8px;
}

.dtk-login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.dtk-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.dtk-login-btn svg {
    transition: transform 0.2s ease;
}

.dtk-login-btn:hover svg {
    transform: translateX(2px);
}

/* Footer */
.dtk-login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.dtk-login-footer p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.dtk-login-footer a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dtk-login-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Decorative circles */
.dtk-login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.dtk-decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
}

.dtk-circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.dtk-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.dtk-circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -75px;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 480px) {
    .dtk-login-wrapper {
        padding: 20px 16px;
    }
    
    .dtk-login-card {
        padding: 32px 24px;
    }
    
    .dtk-login-icon {
        width: 64px;
        height: 64px;
    }
    
    .dtk-login-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .dtk-login-title {
        font-size: 20px;
    }
    
    .dtk-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dtk-login-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Loading state for login button */
.dtk-login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.dtk-login-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.dtk-input:focus-visible,
.dtk-login-btn:focus-visible,
.dtk-toggle-password:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .dtk-login-card {
        border: 2px solid #000;
    }
    
    .dtk-input {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dtk-login-btn,
    .dtk-input,
    .dtk-toggle-password {
        transition: none;
    }
}














/* ========================================
   VIDEO SEKTION STYLES - Tilføj til frontend.css
   ======================================== */

/* Video Section */
.dtk-video-section {
    position: relative;
}

.dtk-profile-video-container {
    width: 100%;
    margin-top: 4px;
}

/* Video Player og Embed styling */
.dtk-video-player,
.dtk-video-embed {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 16:9 aspect ratio for embeds */
.dtk-video-embed {
    padding-bottom: 56.25%;
    height: 0;
}

.dtk-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Native video player */
.dtk-video-player video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

.dtk-uploaded-video,
.dtk-external-video {
    border-radius: 12px;
}

/* Video hover effects */
.dtk-video-player:hover,
.dtk-video-embed:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Tom video sektion styling */
.dtk-video-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.dtk-video-empty:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    transform: translateY(-1px);
}

.dtk-video-empty-icon {
    margin-bottom: 16px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.dtk-video-empty:hover .dtk-video-empty-icon {
    color: #3b82f6;
}

.dtk-video-empty p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.dtk-video-empty .dtk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.dtk-video-empty .dtk-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Video Edit Modal Styles */
.dtk-video-modal .dtk-modal-content {
    max-width: 600px;
}

.dtk-video-upload-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.dtk-video-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dtk-video-tab:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.dtk-video-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: transparent;
}

.dtk-video-tab svg {
    width: 18px;
    height: 18px;
}

/* Video Tab Content */
.dtk-video-tab-content {
    display: none;
}

.dtk-video-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* URL Input Styling */
.dtk-video-url-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dtk-video-url-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.dtk-video-url-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dtk-video-url-input::placeholder {
    color: #94a3b8;
}

.dtk-video-url-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.dtk-video-url-help svg {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}

.dtk-video-url-help-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.dtk-video-url-help-text strong {
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

/* Video Upload Area */
.dtk-video-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
}

.dtk-video-upload-area:hover,
.dtk-video-upload-area.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.dtk-video-upload-area.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.dtk-video-upload-icon {
    margin-bottom: 16px;
    color: #94a3b8;
}

.dtk-video-upload-area:hover .dtk-video-upload-icon {
    color: #3b82f6;
}

.dtk-video-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px 0;
}

.dtk-video-upload-hint {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 16px 0;
}

.dtk-video-upload-formats {
    font-size: 12px;
    color: #94a3b8;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Video Preview */
.dtk-video-preview {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.dtk-video-preview video,
.dtk-video-preview iframe {
    width: 100%;
    display: block;
}

.dtk-video-preview-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.dtk-video-preview-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.dtk-video-preview-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.dtk-video-preview-remove {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dtk-video-preview-remove:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.05);
}

/* Upload Progress */
.dtk-video-upload-progress {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.dtk-video-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.dtk-video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.dtk-video-progress-text {
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* Current Video Display in Modal */
.dtk-current-video-container {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dtk-current-video-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtk-current-video-preview {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.dtk-current-video-preview video {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.dtk-current-video-preview iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* Responsive Video Styles */
@media (max-width: 768px) {
    .dtk-video-player video {
        max-height: 300px;
    }
    
    .dtk-video-empty {
        padding: 32px 16px;
        min-height: 160px;
    }
    
    .dtk-video-empty p {
        font-size: 14px;
    }
    
    .dtk-video-upload-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .dtk-video-tab {
        border-bottom: none;
        border-left: 2px solid transparent;
        margin-bottom: 0;
        margin-left: -2px;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    
    .dtk-video-tab.active {
        border-bottom: none;
        border-left-color: #3b82f6;
    }
    
    .dtk-video-upload-area {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .dtk-video-empty {
        padding: 24px 12px;
        min-height: 140px;
    }
    
    .dtk-video-empty-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .dtk-video-url-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print styles */
@media print {
    .dtk-video-section {
        display: none;
    }
}













/* ========================================
   RESPONSIVT SIDEPANEL - MOBIL/TABLET CSS
   Tilføj denne CSS til din frontend.css fil
   ======================================== */

/* ----------------------------------------
   Mobile Menu Toggle Button (Tekstknap)
   ---------------------------------------- */
.dtk-mobile-menu-toggle {
    display: none; /* Skjult på desktop */
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 999; /* Lavere end sidemenuen */
    height: 44px;
    padding: 0 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.dtk-mobile-menu-toggle:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.dtk-mobile-menu-toggle:active {
    transform: scale(0.98);
}

.dtk-menu-toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Aktiv state - når menu er åben */
.dtk-toggle-active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.dtk-toggle-active .dtk-menu-toggle-text {
    color: #ffffff;
}

/* ----------------------------------------
   Mobile Overlay
   ---------------------------------------- */
.dtk-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000; /* Mellem toggle og sidemenu */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dtk-overlay-visible {
    opacity: 1;
    visibility: visible;
}

/* ----------------------------------------
   Side Menu Header (kun synlig på mobil)
   ---------------------------------------- */
.dtk-side-menu-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.dtk-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dtk-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
}

.dtk-menu-close:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ----------------------------------------
   TABLET BREAKPOINT (768px - 1024px)
   ---------------------------------------- */
@media (max-width: 1024px) {
    /* Vis hamburger menu */
    .dtk-mobile-menu-toggle {
        display: flex;
    }
    
    /* Vis overlay */
    .dtk-mobile-overlay {
        display: block;
    }
    
    /* Side menu som slide-out panel */
    .dtk-side-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        z-index: 1001; /* Højere end toggle knappen */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .dtk-side-menu.dtk-menu-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Vis side menu header */
    .dtk-side-menu-header {
        display: flex;
    }
    
    /* Juster content area */
    .dtk-content-area {
        padding: 80px 24px 24px; /* Ekstra top padding til hamburger knap */
    }
    
    /* Dashboard container full width */
    .dtk-dashboard-container {
        display: block;
    }
    
    /* Juster profil view */
    .dtk-profile-view-integrated {
        max-width: 100% !important;
    }
}

/* ----------------------------------------
   MOBIL BREAKPOINT (< 768px)
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Menu knap position */
    .dtk-mobile-menu-toggle {
        top: 12px;
        left: 12px;
        height: 42px;
        padding: 0 14px;
    }
    
    /* Side menu bredde */
    .dtk-side-menu {
        width: 280px;
    }
    
    /* Content area padding */
    .dtk-content-area {
        padding: 72px 16px 16px;
    }
    
    /* Content header */
    .dtk-content-header {
        margin-bottom: 20px;
    }
    
    .dtk-content-header h3 {
        font-size: 18px;
    }
    
    .dtk-content-header p {
        font-size: 13px;
    }
    
    /* Files grid */
    .dtk-files-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Members grid */
    .dtk-members-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Menu items */
    .dtk-menu-link {
        padding: 14px 20px;
    }
    
    .dtk-menu-text {
        font-size: 15px;
    }
}

/* ----------------------------------------
   LILLE MOBIL BREAKPOINT (< 480px)
   ---------------------------------------- */
@media (max-width: 480px) {
    /* Menu knap */
    .dtk-mobile-menu-toggle {
        top: 10px;
        left: 10px;
        height: 40px;
        padding: 0 16px;
    }
    
    .dtk-menu-toggle-text {
        font-size: 13px;
    }
    
    /* Side menu */
    .dtk-side-menu {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .dtk-side-menu-header {
        padding: 14px 16px;
    }
    
    .dtk-menu-title {
        font-size: 16px;
    }
    
    /* Content area */
    .dtk-content-area {
        padding: 68px 12px 12px;
    }
    
    /* Menu items */
    .dtk-menu-link {
        padding: 12px 16px;
    }
    
    .dtk-menu-header {
        padding: 10px 16px 4px;
        font-size: 11px;
    }
    
    .dtk-badge {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    /* File cards */
    .dtk-file-card {
        height: auto;
        min-height: 240px;
    }
    
    .dtk-file-icon {
        height: 100px;
    }
    
    .dtk-file-details {
        padding: 14px;
    }
    
    .dtk-file-title {
        font-size: 14px;
        min-height: auto;
        -webkit-line-clamp: 2;
    }
    
    .dtk-file-actions {
        padding: 0 14px 14px;
    }
    
    .dtk-download-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }
    
    /* Member cards */
    .dtk-member-card {
        height: auto;
        min-height: 160px;
    }
    
    .dtk-member-banner {
        height: 60px;
    }
    
    .dtk-member-avatar {
        top: 35px;
        left: 12px;
        width: 44px;
        height: 44px;
    }
    
    .dtk-member-info {
        padding: 24px 12px 12px 12px;
    }
    
    .dtk-member-name {
        font-size: 14px;
    }
    
    .dtk-member-email {
        font-size: 11px;
    }
}

/* ----------------------------------------
   LANDSCAPE MODE PÅ MOBIL
   ---------------------------------------- */
@media (max-width: 896px) and (orientation: landscape) {
    .dtk-side-menu {
        width: 260px;
    }
    
    .dtk-content-area {
        padding: 70px 20px 20px;
    }
    
    .dtk-files-grid,
    .dtk-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------
   SAFE AREA INSETS (for iPhone X osv.)
   ---------------------------------------- */
@supports (padding: max(0px)) {
    .dtk-mobile-menu-toggle {
        top: max(12px, env(safe-area-inset-top));
        left: max(12px, env(safe-area-inset-left));
    }
    
    .dtk-side-menu {
        padding-left: env(safe-area-inset-left);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .dtk-content-area {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* ----------------------------------------
   DARK MODE SUPPORT (valgfrit)
   ---------------------------------------- */
@media (prefers-color-scheme: dark) {
    /* Hvis du vil tilføje dark mode støtte senere */
}

/* ----------------------------------------
   REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dtk-side-menu,
    .dtk-mobile-overlay,
    .dtk-mobile-menu-toggle {
        transition: none;
    }
}

/* ----------------------------------------
   HIGH CONTRAST MODE
   ---------------------------------------- */
@media (prefers-contrast: high) {
    .dtk-mobile-menu-toggle {
        border-width: 2px;
        border-color: #000;
    }
    
    .dtk-menu-toggle-text {
        color: #000;
    }
    
    .dtk-side-menu {
        border-right: 2px solid #000;
    }
}

/* ----------------------------------------
   TOUCH DEVICE OPTIMIZATIONS
   ---------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Større touch targets */
    .dtk-menu-link {
        min-height: 48px;
    }
    
    .dtk-mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
    }
    
    .dtk-menu-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Fjern hover effekter på touch devices */
    .dtk-menu-link:hover {
        background-color: transparent;
        border-left-color: transparent;
        color: inherit;
    }
    
    .dtk-active .dtk-menu-link:hover,
    .dtk-active .dtk-menu-link {
        background-color: rgba(52, 152, 219, 0.08);
        border-left-color: #3498db;
        color: #3498db;
    }
}

/* ----------------------------------------
   PRINT STYLES
   ---------------------------------------- */
@media print {
    .dtk-mobile-menu-toggle,
    .dtk-mobile-overlay,
    .dtk-menu-close {
        display: none !important;
    }
    
    .dtk-side-menu {
        position: static !important;
        transform: none !important;
        width: auto !important;
        box-shadow: none !important;
    }
    
    .dtk-content-area {
        padding: 0 !important;
    }
}