/* --- Profil Rendszer (Alap) --- */
.ld-profile-container {
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: var(--ld-p-bg, #ffffff);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ld-profile-header {
    background: var(--ld-p-h-bg, #2c3338);
    color: var(--ld-p-h-text, #ffffff);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ld-profile-header a { color: var(--ld-p-h-text, #fff); text-decoration: none; font-size: 0.9em; opacity: 0.8; }

/* Tabs */
.ld-profile-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e2e2;
    margin: 0; padding: 0;
    list-style: none;
}
.ld-profile-tabs li {
    padding: 15px 20px;
    cursor: pointer;
    border-right: 1px solid #e2e2e2;
    font-weight: 500;
    color: #555;
}
.ld-profile-tabs li.active {
    background: var(--ld-p-bg, #ffffff);
    color: #000;
    border-bottom: 3px solid var(--ld-p-active, #007cba);
    margin-bottom: -1px;
}

/* Tartalom */
.ld-profile-content { display: none; padding: 30px; }
.ld-profile-content.active { display: block; animation: fadeIn 0.3s; }
.ld-profile-table { width: 100%; border-collapse: collapse; }
.ld-profile-table td { padding: 12px 5px; border-bottom: 1px solid #eee; }

/* Szerkeszthető szöveg mezők */
.ld-editable { padding: 5px; border-bottom: 1px dashed #ccc; cursor: text; font-size: 16px; min-height: 20px; }
.ld-editable:focus { background: #fff; border-bottom: 2px solid var(--ld-p-active, #007cba); outline: none; }

/* DÁTUM MEZŐ (Datepicker) */
.ld-flat-date {
    border: none !important;
    border-bottom: 1px dashed #ccc !important;
    background: transparent;
    font-size: 16px;
    color: #333;
    padding: 4px;
    font-family: inherit;
    width: 100%;
    max-width: 200px;
}
.ld-flat-date:focus {
    border-bottom: 2px solid var(--ld-p-active, #007cba) !important;
    outline: none;
    box-shadow: none !important;
}

/* Avatar */
.ld-avatar-section { text-align: center; margin-bottom: 20px; }
.ld-avatar-wrapper { position: relative; width: 100px; height: 100px; margin: 0 auto; cursor: pointer; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.ld-profile-img { width: 100%; height: 100%; object-fit: cover; }
.ld-avatar-overlay { position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.6); color: white; font-size: 11px; text-align: center; padding: 4px 0; opacity: 0; transition: opacity 0.2s; }
.ld-avatar-wrapper:hover .ld-avatar-overlay { opacity: 1; }

/* Kurzusok */
.ld-course-item { margin-bottom: 15px; border: 1px solid #eee; padding: 15px; border-radius: 5px; }
.ld-progress-bg { background: #eee; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 5px; }
.ld-progress-bar { background: #4caf50; height: 100%; }

/* Gombok */
.ld-cc-btn-wrapper { display: flex; gap: 15px; justify-content: center; margin: 30px 0; }
.ld-cc-btn {
    padding: 12px 24px; border: none !important; border-radius: 4px; color: white;
    font-weight: bold; font-size: 16px; cursor: pointer; text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); font-family: inherit;
}
.ld-cc-btn-success { background: var(--ld-success, #28a745); }
.ld-cc-btn-fail { background: var(--ld-fail, #dc3545); }
.ld-cc-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ld-cc-btn:disabled { background: #ccc !important; cursor: not-allowed; }

/* Email Küldő Gomb Stílusa */
.ld-send-submission-email {
    background-color: var(--ld-em-btn-bg, #007cba);
    color: var(--ld-em-btn-text, #ffffff);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}
.ld-send-submission-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    opacity: 0.95;
}
.ld-send-submission-email:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.ld-send-submission-email:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Inaktív Doboz */
.ld-inactive-box {
    background: #f8f9fa; border: 1px solid #ddd; border-left: 5px solid #aaa;
    padding: 20px; border-radius: 5px; margin: 20px 0; color: #666; font-family: inherit;
}
.ld-inactive-box h3 { margin-top: 0; color: #888; font-size: 1.2em; display: flex; align-items: center; gap: 10px; }
.ld-inactive-box a { color: #555; text-decoration: underline; font-weight: bold; }

/* --- LOGIN FORM DESIGN --- */
.ld-login-container { display: flex; justify-content: center; align-items: center; padding: 40px 20px; background-color: var(--ld-l-page-bg, #ffffff); min-height: 400px; }
.ld-login-card { background: #ffffff; width: 100%; max-width: 400px; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: center; border: 1px solid #eee; }
.ld-login-title { margin-top: 0; margin-bottom: 10px; color: #333; font-size: 24px; font-weight: 700; }
.ld-login-subtitle { color: #666; margin-bottom: 30px; font-size: 14px; }
.ld-login-card form { text-align: left; }
.ld-login-card p { margin-bottom: 20px; }
.ld-login-card label { display: block; font-weight: 600; margin-bottom: 8px; color: #444; font-size: 14px; }
.ld-login-card input[type="text"], .ld-login-card input[type="password"] { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; transition: all 0.3s ease; background: #f9f9f9; box-sizing: border-box; margin-bottom: 10px; }
.ld-login-card input[type="text"]:focus, .ld-login-card input[type="password"]:focus { border-color: var(--ld-l-btn-bg, #007cba); background: #fff; outline: none; }
.ld-login-card input[type="submit"] { width: 100%; background: var(--ld-l-btn-bg, #007cba); color: var(--ld-l-btn-text, #ffffff); border: none; padding: 12px; font-size: 16px; font-weight: bold; text-transform: uppercase; border-radius: 6px; cursor: pointer; transition: background 0.3s, transform 0.1s; margin-top: 10px; }
.ld-login-card input[type="submit"]:hover { opacity: 0.9; }
.ld-login-footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; }
.ld-login-footer a { color: var(--ld-l-btn-bg, #007cba); text-decoration: none; font-weight: 500; }

/* --- VIDEÓ BEKÜLDŐ DOBOZ --- */
.ld-video-submission-box { background: #f9f9f9; border: 1px solid #eee; padding: 20px; border-radius: 5px; margin: 20px 0; }
.ld-video-field { margin-bottom: 15px; }
.ld-video-field label { display: block; font-weight: bold; margin-bottom: 5px; color: #444; }
.ld-video-url-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.ld-video-url-input:focus { border-color: var(--ld-p-active, #007cba); outline: none; }

/* --- PROFIL VIDEÓ LISTA --- */
.ld-video-filter { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.ld-video-filter select { padding: 5px 10px; font-size: 14px; }
.ld-course-group { margin-bottom: 30px; }
.ld-course-group h4 { margin-bottom: 10px; color: var(--ld-p-active, #007cba); border-bottom: 2px solid #eee; padding-bottom: 5px; }

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

/* --- EDZÉSTERV (ÚJ) --- */
.ld-plan-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.ld-plan-day {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.ld-plan-header {
    background: var(--ld-p-active, #007cba);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ld-plan-header h4 { margin: 0; color: #fff; font-size: 16px; }
.ld-plan-time { font-size: 12px; background: rgba(0,0,0,0.2); padding: 3px 8px; border-radius: 10px; }

.ld-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ld-plan-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.ld-plan-list li:last-child { border-bottom: none; }

.ld-plan-item-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.ld-plan-item-title a:hover { color: var(--ld-p-active, #007cba); text-decoration: underline; }

.ld-plan-item-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ld-type-badge {
    background: #eee;
    color: #555;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.ld-plan-empty {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: green;
    font-weight: bold;
}