.lunea-panel {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #111827;
    box-sizing: border-box;
}

.lunea-panel *,
.lunea-panel *::before,
.lunea-panel *::after {
    box-sizing: border-box;
}

.lunea-panel-narrow {
    max-width: 900px;
}

.lunea-login-box {
    max-width: 700px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 12px;
    text-align: center;
}

.lunea-header {
    text-align: center;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #0f172a, #111827);
    border-radius: 22px;
    padding: 38px 24px 42px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.lunea-header::before {
    content: "";
    display: block;
    width: 220px;
    height: 82px;
    margin: 0 auto 16px auto;
    background-image: url("../img/lunea-logo.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.lunea-header h1 {
    font-size: 34px;
    margin: 0 0 10px 0;
    color: #ffffff;
    line-height: 1.2;
}

.lunea-header p {
    font-size: 17px;
    color: #d1d5db;
    margin: 0;
}

.lunea-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.lunea-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.lunea-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.lunea-card h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #111827;
    line-height: 1.25;
}

.lunea-card p {
    font-size: 14px;
    color: #6b7280;
    min-height: 60px;
    margin: 0 0 14px 0;
}

.lunea-top-action {
    margin-bottom: 24px;
    text-align: right;
}

.lunea-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.lunea-box h3 {
    margin-top: 0;
    color: #111827;
}

.lunea-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.lunea-list-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: #ffffff;
}

.lunea-list-item h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111827;
    line-height: 1.25;
}

.lunea-list-item p {
    margin: 0 0 8px 0;
    color: #6b7280;
}

.lunea-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    align-items: center;
}

.lunea-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 10px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
    color: #374151;
}

.lunea-muted {
    color: #6b7280;
    margin-bottom: 0;
}

.lunea-text-link {
    color: #111827;
    text-decoration: underline;
}

.lunea-back {
    display: inline-block;
    margin-top: 24px;
    color: #111827;
    text-decoration: none;
}

.lunea-back:hover {
    text-decoration: underline;
}

.lunea-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.lunea-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.lunea-form input,
.lunea-form select,
.lunea-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    line-height: 1.4;
}

.lunea-form input:focus,
.lunea-form select:focus,
.lunea-form textarea:focus {
    outline: 2px solid rgba(15, 23, 42, 0.18);
    outline-offset: 2px;
    border-color: #111827;
}

.lunea-form textarea {
    resize: vertical;
}

.lunea-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.lunea-form-actions a {
    color: #111827;
    text-decoration: none;
}

.lunea-form-actions a:hover {
    text-decoration: underline;
}

.lunea-help-text {
    margin-top: -8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #6b7280;
}

.lunea-current-image {
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    max-width: 260px;
    background: #f9fafb;
}

.lunea-current-image img {
    display: block;
    width: 100%;
    height: auto;
}

.lunea-product-search {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 20px 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.lunea-product-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #111827;
}

.lunea-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.lunea-pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.lunea-notice {
    max-width: 900px;
    margin: 0 auto 20px auto;
    padding: 14px 18px;
    border-radius: 8px;
}

.lunea-notice-success {
    background: #dcfce7;
    color: #166534;
}

.lunea-notice-error {
    background: #fee2e2;
    color: #991b1b;
}

.lunea-notice-warning {
    background: #fef3c7;
    color: #92400e;
}

.lunea-notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Tema buton stillerini panel içinde ezmek için güçlü panel buton kuralları */
html body .lunea-panel .lunea-btn,
html body .lunea-panel a.lunea-btn,
html body .lunea-panel button.lunea-btn,
html body .lunea-panel input[type="submit"].lunea-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
    border: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    font-family: inherit !important;
}

html body .lunea-panel .lunea-btn-dark,
html body .lunea-panel a.lunea-btn-dark,
html body .lunea-panel a.lunea-btn-dark:visited,
html body .lunea-panel button.lunea-btn-dark,
html body .lunea-panel input[type="submit"].lunea-btn-dark {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .lunea-panel .lunea-btn-dark:hover,
html body .lunea-panel .lunea-btn-dark:focus,
html body .lunea-panel .lunea-btn-dark:active,
html body .lunea-panel a.lunea-btn-dark:hover,
html body .lunea-panel a.lunea-btn-dark:focus,
html body .lunea-panel a.lunea-btn-dark:active,
html body .lunea-panel button.lunea-btn-dark:hover,
html body .lunea-panel button.lunea-btn-dark:focus,
html body .lunea-panel button.lunea-btn-dark:active,
html body .lunea-panel input[type="submit"].lunea-btn-dark:hover {
    background: #1e293b !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .lunea-panel .lunea-btn-light,
html body .lunea-panel a.lunea-btn-light,
html body .lunea-panel a.lunea-btn-light:visited,
html body .lunea-panel button.lunea-btn-light {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

html body .lunea-panel .lunea-btn-light:hover,
html body .lunea-panel .lunea-btn-light:focus,
html body .lunea-panel .lunea-btn-light:active,
html body .lunea-panel a.lunea-btn-light:hover,
html body .lunea-panel a.lunea-btn-light:focus,
html body .lunea-panel a.lunea-btn-light:active,
html body .lunea-panel button.lunea-btn-light:hover,
html body .lunea-panel button.lunea-btn-light:focus,
html body .lunea-panel button.lunea-btn-light:active {
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

html body .lunea-panel .lunea-btn-gray,
html body .lunea-panel a.lunea-btn-gray,
html body .lunea-panel a.lunea-btn-gray:visited,
html body .lunea-panel button.lunea-btn-gray {
    background: #374151 !important;
    background-color: #374151 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .lunea-panel .lunea-btn-gray:hover,
html body .lunea-panel .lunea-btn-gray:focus,
html body .lunea-panel .lunea-btn-gray:active,
html body .lunea-panel a.lunea-btn-gray:hover,
html body .lunea-panel a.lunea-btn-gray:focus,
html body .lunea-panel a.lunea-btn-gray:active,
html body .lunea-panel button.lunea-btn-gray:hover,
html body .lunea-panel button.lunea-btn-gray:focus,
html body .lunea-panel button.lunea-btn-gray:active {
    background: #111827 !important;
    background-color: #111827 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 900px) {
    .lunea-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lunea-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lunea-actions {
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .lunea-panel {
        margin: 20px auto;
        padding: 14px;
    }

    .lunea-grid {
        grid-template-columns: 1fr;
    }

    .lunea-header {
        padding: 30px 18px 34px;
    }

    .lunea-header h1 {
        font-size: 28px;
    }

    .lunea-form {
        padding: 20px;
    }

    .lunea-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lunea-form-actions .lunea-btn,
    .lunea-form-actions a {
        width: 100%;
        text-align: center;
    }

    .lunea-product-search {
        flex-direction: column;
        align-items: stretch;
    }

    .lunea-product-search .lunea-btn {
        text-align: center;
    }

    .lunea-pagination {
        flex-direction: column;
    }
    
/* Lunea panel çıkış ve işlem geçmişi alanları */
.lunea-panel-logoutbar {
    max-width: 1100px;
    margin: 24px auto -20px auto;
    padding: 0 20px;
}

.lunea-panel-logoutbar .lunea-top-action {
    margin-bottom: 0;
}

.lunea-project-activity {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.lunea-project-activity p {
    min-height: auto;
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #6b7280;
}

/* Ürün listesi içindeki küçük form butonlarını hizalar */
.lunea-actions form {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

/* Ürün filtreleri */
.lunea-product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

html body .lunea-panel .lunea-filter-active,
html body .lunea-panel a.lunea-filter-active,
html body .lunea-panel a.lunea-filter-active:visited {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.lunea-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Panel yardım kutusu */
.lunea-panel-help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto 22px auto;
    padding: 18px 20px;
    max-width: 1100px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.lunea-panel-help-content strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.lunea-panel-help-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.lunea-panel-help-btn,
.lunea-panel-help-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px 15px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
}

.lunea-panel-help-btn:hover {
    background: #1e293b;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 700px) {
    .lunea-panel-help-box {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
        margin-right: 20px;
    }

    .lunea-panel-help-btn {
        width: 100%;
    }
}
/* Ana panelde şimdilik sadece ilk 2 kart görünsün */
.lunea-grid .lunea-card:nth-child(n+3) {
    display: none !important;
}

/* Ana panel kart düzeni: 2 kart */
.lunea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    .lunea-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
}
/* Ana panelde 3. kart ve sonrasını kesin gizle */
html body .lunea-panel .lunea-grid > *:nth-child(n+3) {
    display: none !important;
}

/* Ana paneli 2 karta göre hizala */
html body .lunea-panel .lunea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    html body .lunea-panel .lunea-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
}
/* Ana panel 2 kart ortalama */
html body .lunea-panel .lunea-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
}

@media (max-width: 700px) {
    html body .lunea-panel .lunea-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
}
/* Ana panel kartlarını gerçekten ortaya al */
html body .lunea-panel .lunea-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

/* Ana panel kart genişliği */
html body .lunea-panel .lunea-grid .lunea-card {
    flex: 0 1 280px !important;
    width: 280px !important;
    max-width: 280px !important;
}

/* Mobilde alt alta gelsin */
@media (max-width: 700px) {
    html body .lunea-panel .lunea-grid {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html body .lunea-panel .lunea-grid .lunea-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}