/* Phideoshare Algemene Styling */
.phideoshare-container { max-width: 800px; margin: 40px auto; padding: 30px; background-color: #ffffff; border: 1px solid #e0e4f0; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; box-sizing: border-box !important; }
.phideoshare-my-uploads { max-width: 100%; }

/* Logo */
.phideoshare-logo { text-align: center; margin-bottom: 25px; }
.phideoshare-logo img { max-width: 75%; height: auto; }

/* Mode Selector */
.phideoshare-mode-selector { display: flex; border: 1px solid #d1d5db; border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.phideoshare-mode-label { flex: 1; text-align: center; padding: 12px; background-color: #f9fafb; cursor: pointer; transition: background-color 0.2s; color: #374151; }
.phideoshare-mode-label.active { background-color: #e0e7ff; color: #1e40af; font-weight: bold; }
.phideoshare-mode-label input[type="radio"] { display: none; }

/* Formulieren styling */
.phideoshare-form-field { margin-bottom: 15px; width: 100%; }
.phideoshare-form-field label { display: block; margin-bottom: 5px; font-weight: 400; color: #334155; }
.phideoshare-form-field input[type="text"], .phideoshare-form-field input[type="email"], .phideoshare-form-field textarea { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 4px; box-sizing: border-box; font-weight: 400; }
.phideoshare-form-field textarea { caret-color: #333; }
#phideoshare-fields.phideoshare-disabled, .phideoshare-mode-selector.phideoshare-disabled { opacity: 0.5; pointer-events: none; }

/* Link Resultaat Box */
.phideoshare-link-box { padding: 20px; border: 2px dashed #a5b4fc; border-radius: 6px; text-align: center; }
.phideoshare-link-box p { margin: 0 0 15px 0; font-weight: bold; color: #374151; }
.phideoshare-link-box input[type="text"] { width: 100%; padding: 10px; text-align: center; border: 1px solid #d1d5db; background-color: #f9fafb; border-radius: 4px; font-size: 16px; color: #1e40af; }

/* Download Pagina & Thumbnails */
.phideoshare-download-box { text-align: center; }
.phideoshare-download-box h2 { color: #1e293b; margin-bottom: 15px; }
.phideoshare-download-box p { color: #64748b; margin-bottom: 25px; }
.phideoshare-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; margin-bottom: 30px; border-top: 1px solid #e0e4f0; padding-top: 20px; }
.phideoshare-thumbnails img { max-width: 80px; max-height: 80px; height: auto; width: auto; object-fit: cover; border-radius: 4px; opacity: 0.7; }

/* Notificaties */
.phideoshare-notice { padding: 15px; margin-bottom: 20px; border-radius: 4px; }
.phideoshare-notice.success { background-color: #dcfce7; color: #166534; border: 1px solid #86efac; }
.phideoshare-notice.error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Plupload Uploader Styling */
.phideoshare-button { padding: 15px; background-color: #2563eb; color: #ffffff; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.3s; text-align: center; text-decoration: none; display: inline-block; box-sizing: border-box; }
#start-upload.phideoshare-button { width: 100%; }
.phideoshare-download-button { width: auto; padding: 15px 30px; }
.phideoshare-button:hover { background-color: #1d4ed8; }
.phideoshare-button-secondary { display: inline-block; padding: 10px 20px; background-color: #e2e8f0; color: #334155; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; }
#phideoshare-progress-bar { width: 100%; background-color: #e0e4f0; height: 20px; border-radius: 10px; margin-top: 20px; overflow: hidden; }
#phideoshare-progress-bar-inner { width: 0%; height: 100%; background-color: #2563eb; transition: width 0.3s; text-align: center; color: white; font-weight: bold; line-height: 20px; }
.phideoshare-processing #phideoshare-progress-bar-inner { width: 100% !important; background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-size: 40px 40px; animation: phideoshare-slide 2s linear infinite; }
@keyframes phideoshare-slide { from { background-position: 40px 0; } to { background-position: 0 0; } }


/* "Mijn Uploads" Tabel Styling */
.phideoshare-my-uploads h2 { font-size: 24px; color: #1e293b; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 20px; }
.phideoshare-uploads-table { width: 100%; border-collapse: collapse; }
.phideoshare-uploads-table th, .phideoshare-uploads-table td { padding: 15px; border-bottom: 1px solid #e2e8f0; color: #334155; vertical-align: middle; text-align: left; }
.phideoshare-uploads-table th { background-color: #f8fafc; font-weight: 600; font-size: 14px; }
.phideoshare-uploads-table tbody tr:last-child td { border-bottom: none; }
.phideoshare-uploads-table tbody tr:hover { background-color: #f8fafc; }

/* --- DEFINITIEVE FIX VOOR ACTIES-KOLOM --- */
.phideoshare-actions .phideoshare-action-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.phideoshare-actions .phideoshare-hidden-link-input { display: none; }
.phideoshare-actions button { /* Reset voor alle knoppen in de actiekolom */
    padding: 8px 12px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    border: 1px solid #d1d5db !important;
    font-weight: 500 !important;
    transition: background-color 0.2s;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1.5 !important;
    height: auto !important;
}
.phideoshare-actions .phideoshare-copy-link-btn, 
.phideoshare-actions .phideoshare-resend-btn {
    background-color: #f9fafb !important;
    color: #374151 !important;
}
.phideoshare-actions .phideoshare-copy-link-btn:hover, 
.phideoshare-actions .phideoshare-resend-btn:hover {
    background-color: #f3f4f6 !important;
    border-color: #adb5bd !important;
}
.phideoshare-actions .phideoshare-send-email-btn {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
    width: auto !important; /* Voorkom dat de knop te breed wordt */
    flex-shrink: 0; /* Voorkom dat de knop krimpt */
}
.phideoshare-actions .phideoshare-send-email-btn:hover { background-color: #2563eb !important; }
.phideoshare-actions .phideoshare-send-email-btn:disabled { background-color: #9ca3af !important; border-color: #9ca3af !important; cursor: not-allowed; }
.phideoshare-actions .phideoshare-resend-form { margin-top: 10px; display: flex !important; gap: 8px; align-items: center; width: 100%; }
.phideoshare-actions .phideoshare-resend-email-input {
    flex-grow: 1;
    padding: 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px !important;
    outline: none !important;
    height: auto !important;
    min-width: 150px; /* Geef het veld een minimale breedte */
}
.phideoshare-actions .phideoshare-resend-email-input:focus { outline: 1px solid #3b82f6 !important; border-color: #3b82f6 !important; box-shadow: none !important; }
.phideoshare-actions .phideoshare-resend-status { font-size: 12px; font-style: italic; display: none; }

/* Responsive "Card" view */
@media screen and (max-width: 768px) {
    .phideoshare-uploads-table thead { display: none; }
    .phideoshare-uploads-table tr { display: block; margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; }
    .phideoshare-uploads-table td { display: block; text-align: right; padding-left: 50%; position: relative; border-bottom: 1px solid #f1f5f9; padding-top: 10px; padding-bottom: 10px; }
    .phideoshare-uploads-table td.phideoshare-actions { padding-left: 10px; text-align: left; }
    .phideoshare-uploads-table td:last-child { border-bottom: none; }
    .phideoshare-uploads-table td::before { content: attr(data-label); position: absolute; left: 10px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: 600; color: #475569; }
    .phideoshare-uploads-table td.phideoshare-actions::before { display: none; }
}
/* Styling voor het Dashboard */
.phideoshare-dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.phideoshare-dashboard-header .phideoshare-logo {
    flex-shrink: 0;
    margin-bottom: 0;
}

.phideoshare-dashboard-header .phideoshare-logo img {
    max-width: 100px; /* Maak het logo kleiner in de header */
}

.phideoshare-welcome-message h2 {
    margin: 0 0 5px 0;
}

.phideoshare-welcome-message p {
    margin: 0;
    color: #64748b;
}

.phideoshare-dashboard-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.phideoshare-dashboard-actions .phideoshare-button,
.phideoshare-dashboard-actions .phideoshare-button-secondary {
    width: auto;
    flex-grow: 1;
}