/**
 * Style dla panelu użytkownika (frontend)
 * EDYTUJ TEN PLIK aby zmienić wygląd panelu
 */

/* ===========================================
   KONTENER GŁÓWNY
   =========================================== */
.sm-user-dashboard {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===========================================
   ZAKŁADKI (JAK W CODEPEN)
   =========================================== */
.sm-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sm-tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.sm-tabs-nav li {
    flex: 1;
    margin: 0;
}

.sm-tabs-nav li a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    background: #f5f5f5;
}

.sm-tabs-nav li a:hover {
    background: #e8e8e8;
    color: #2271b1;
}

.sm-tabs-nav li.active a {
    background: white;
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.sm-tabs-nav li a .dashicons {
    vertical-align: middle;
    margin-right: 5px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Zakładka WYLOGUJ (bez hover efektu) */
.sm-tabs-nav li.sm-tab-logout a {
    color: #d63638;
}

.sm-tabs-nav li.sm-tab-logout a:hover {
    background: #f5f5f5;
    color: #d63638;
}

.sm-tabs-content {
    padding: 30px;
    background: white;
}

/* Responsywność */
@media (max-width: 768px) {
    .sm-tabs-nav {
        flex-direction: column;
    }
    
    .sm-tabs-nav li a {
        text-align: left;
        padding: 14px 20px;
    }
}

/* ===========================================
   FORMULARZ (STYL WP-ADMIN)
   =========================================== */
.sm-profile-wrapper {
    max-width: 700px;
}

.sm-profile-form-table .form-table {
    background: transparent;
}

.sm-profile-form-table .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    font-weight: 600;
    color: #1d2327;
}

.sm-profile-form-table .form-table td {
    padding: 15px 10px;
}

.sm-profile-form-table .regular-text {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.sm-profile-form-table .regular-text:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.sm-profile-form-table .regular-text:disabled {
    background: #f6f7f7;
    color: #646970;
}

.sm-profile-form-table .description {
    color: #646970;
    font-size: 13px;
    margin-top: 5px;
}

.sm-profile-form-table .submit {
    margin: 0;
    padding: 0;
}

.sm-profile-form-table .button-primary {
    background: #72b572; /* PASTELOWA ZIELEŃ - EDYTUJ TUTAJ */
    border-color: #5fa35f;
    color: white;
    padding: 8px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.sm-profile-form-table .button-primary:hover {
    background: #5fa35f;
    border-color: #4d8c4d;
}

/* Stary CSS dla formularza - USUNIĘTY */

/* Stary CSS przycisków usunięty - używamy .button-primary */

/* ===========================================
   PRZYCISKI DLA KART SZKOLEŃ
   =========================================== */
.sm-btn-course {
    background: #2271b1;
    color: white;
    width: 100%;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.sm-btn-course:hover {
    background: #135e96;
    color: white;
}

/* ===========================================
   KOMUNIKATY
   =========================================== */
.sm-message {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.sm-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.sm-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ===========================================
   LISTA SZKOLEŃ
   =========================================== */
.sm-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .sm-courses-grid {
        grid-template-columns: 1fr;
    }
}

.sm-course-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.sm-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sm-course-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

.sm-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-course-content {
    padding: 20px;
    flex: 1;
}

.sm-course-title {
    font-size: 18px;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.sm-course-meta {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.sm-course-excerpt {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.sm-course-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* ===========================================
   BRAK SZKOLEŃ
   =========================================== */
.sm-no-courses {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.sm-no-courses-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.sm-no-courses h3 {
    font-size: 20px;
    color: #374151;
    margin: 0 0 10px 0;
}

.sm-no-courses p {
    color: #6b7280;
    margin: 0;
}

/* Footer usunięty - wyloguj w tabs */

/* ===========================================
   KOMUNIKAT LOGOWANIA
   =========================================== */
.sm-login-prompt {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px 20px;
}

.sm-login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
}

.sm-login-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.sm-login-box h2 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.sm-login-box p {
    color: #6b7280;
    margin: 0 0 25px 0;
}

.sm-login-btn {
    display: inline-block;
    background: #2271b1;
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.sm-login-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    color: white;
}

/* ZAKŁADKA ZAPISY */
.sm-registrations-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-top: 20px;}
.sm-registration-card {background: white; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column;}
.sm-registration-card:hover {box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px);}
.sm-registration-thumbnail {width: 100%; height: 180px; overflow: hidden; background: #f5f5f5;}
.sm-registration-thumbnail img {width: 100%; height: 100%; object-fit: cover;}
.sm-registration-content {padding: 20px; flex: 1;}
.sm-registration-content h3 {margin: 0 0 12px 0; font-size: 18px; color: #1e293b;}
.sm-registration-stats {display: flex; gap: 15px; margin: 12px 0; padding: 10px; background: #f9fafb; border-radius: 4px; font-size: 13px;}
.sm-registration-footer {padding: 15px 20px; border-top: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 10px;}
.sm-btn-register {background: #00a32a; color: white; border: none; padding: 12px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s;}
.sm-btn-register:hover {background: #008a24; transform: scale(1.02);}
.sm-btn-unregister {background: #dc3232; color: white; border: none; padding: 10px 20px; border-radius: 6px; font-weight: 500; cursor: pointer;}
.sm-btn-unregister:hover {background: #b91c1c;}
@media (max-width: 768px) {.sm-registrations-grid {grid-template-columns: 1fr;}}
