/* ===== RESET / GLOBAL ===== */
@font-face {
  font-family: "Font Awesome";
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f4f6f8;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* ===== LAYOUT ===== */
.admin-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.memorial-layout {
    display: flex;
    align-items: flex-start;
}

.container-memorial {
    flex: 0 0 50%;
    padding: 20px;
}

.container-interdata {
    flex: 0 0 50%;
    padding: 20px;
}

input#priority {
    line-height: 38px;
}

/* ===== HEADER ===== */
.admin-header {
    background: #111;
    color: #fff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-nav a,
.admin-nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    line-height: 22px;
}

.admin-nav a:hover,
.admin-nav button:hover, .admin-nav a.current:hover {
    background: #18b22a;
    color: #fff;
}

.admin-nav a.current {
    color: #18b22a;
}

.admin-nav .logout-btn {
    color: #fff;
}

.admin-nav .logout-btn:hover {
    background: #c0392b;
    color: #fff;
}

/* =========================
   FULL WIDTH GALÉRIA
   ========================= */
.memorial-gallery-full {
    width: 100%;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.memorial-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.memorial-photo-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    min-height: 200px;
    overflow: hidden;
}

.memorial-photo-thumb {
    width: 40%;
    flex-shrink: 0;
}

.memorial-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-photo-meta {
    width: 60%;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.memorial-photo-meta input {
    font-size: 13px;
    margin-bottom: 8px;
}

.photo-position {
    max-width: 90px;
}

.photo-delete {
    font-size: 13px;
    color: #b02a37;
}

@media (max-width: 991px) {
    .memorial-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SHOW – GALÉRIA (READ ONLY)
   ========================= */

.memorial-gallery-full .memorial-photo-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    height: 100%;
}

.memorial-gallery-full .memorial-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.memorial-gallery-full .photo-title {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.memorial-gallery-full .photo-alt {
    font-size: 12px;
    color: #6c757d;
}


/* =========================
   AKCIE
   ========================= */
.memorial-actions {
    margin: 30px 0;
    display: flex;
    gap: 12px;
}


/* ===== FLASH MESSAGES ===== */
.admin-flash {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    max-width: 500px;
    width: calc(100% - 2rem);
    padding: 0.8rem 1.2rem;

    border-radius: 6px;
    text-align: center;
    font-weight: 500;

    opacity: 1;
    transition: opacity 1s ease, transform 1s ease;
}

.admin-flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-flash.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-flash.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

/* ===== TOOLBAR (CREATE + SEARCH) ===== */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-toolbar a.btn {
    height: 44px;
    padding: 0 1rem;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-toolbar form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-toolbar input[type="text"] {
    height: 38px;
    padding: 0 0.6rem;
    font-size: 14px;
    border: 1px solid #ccc;
}

/* ===== FORMS ===== */
input[type="text"],
input[type="date"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 14px;
    border: 1px solid #ccc;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

form .mb-3, form .mb-4 {
    margin-bottom: 1rem;
}

.form-group.remember-me {
    margin: 16px 0px;
}

/* ===== BUTTONS ===== */
.btn {
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0.4rem 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    box-shadow: inset 0px 0px 0px 100px rgb(0 0 0 / 20%);
}

.btn-primary { background: #007bff; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-info { background: #17a2b8; color: #fff; }
.btn-warning { background: #18b22a; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-success { background: #28a745; color: #fff; }

/* ===== TABLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th,
table td {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

table th {
    background: #f0f0f0;
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #fafafa;
}

table tr:hover {
    background: #f1f1f1;
}

h3.added-memorials {
    background: #6c757d;
    padding: 10px;
    color: #fff;
}

/* ACTION BUTTONS */
table .btn {
    font-size: 16px;
    padding: 0.4rem 0.6rem;
    margin-right: 0.4rem;
}

/* ===== LOGIN ===== */
.admin-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-form {
    background: #fff;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.admin-login-form h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-footer {
    margin-top: 30px;
    background: #111;
    color: #aaa;
    padding: 1.5rem 2rem;
    font-size: 16px;
}

.admin-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.admin-footer-links {
    display: flex;
    gap: 1.2rem;
}

.admin-footer-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

.admin-footer-links a:hover {
    text-decoration: underline;
}

.admin-footer-copy {
    font-size: 12px;
    color: #777;
}

/* ===== STATUS INDICATOR ===== */
.mem-status {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.mem-status.active {
    background: #28a745;
}
.mem-status.inactive {
    background: #dc3545;
}
.mem-status.paused {
    background: #fdb314;
}
.mem-status.vip {
    background: #b300ca;
    color: #ffd700;
    font-family: "Font Awesome";
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    line-height: 28px;
}

.mem-status.vip::before {
    content: "\f521";
}


/* ===============================
   PAGINATION – ADMIN CLEAN STYLE
================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding-left: 0;
    margin: 30px 0 10px;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.pagination .page-link:hover {
    background: #f3f4f6;
    border-color: #ccc;
    color: #000;
}

.pagination .page-item.active .page-link {
    background: #111;
    border-color: #111;
    color: #fff;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #aaa;
    border-color: #eee;
    cursor: not-allowed;
}

.pagination .page-link:focus {
    box-shadow: none;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .admin-content {
        padding: 1rem;
    }

    .admin-toolbar {
        align-items: stretch;
    }

    .admin-toolbar form {
        width: 100%;
    }

    .admin-toolbar input[type="text"] {
        flex: 1;
    }
}



