/* === TŁO Z GALERII === */
.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../pictures/contactPageBg.jpg") no-repeat center center / cover;
    filter: blur(10px);
    z-index: -2;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Quicksand", sans-serif;
    color: white;
    position: relative;
    background-color: black;
    z-index: 1;
    min-height: 100vh;
}

/* === GŁÓWNY CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* === NAGŁÓWEK === */
h1 {
    text-align: center;
    font-size: 42px;
    color: orange;
    margin-bottom: 50px;
}

/* === MENU PANELU === */
.nav-admin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.nav-admin a {
    color: white;
    background-color: black;
    padding: 14px 28px;
    border-radius: 30px;
    border: 2px solid orange;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.15);
}

.nav-admin a i {
    font-size: 18px;
}

.nav-admin a:hover {
    background-color: orange;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.5);
}


/* === TABELA === */
/* === OPINIE === */
.table-wrapper {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.08);
  overflow-x: auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  color: white;
}

.table-wrapper th,
.table-wrapper td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-wrapper th {
  background-color: #222;
  color: orange;
  font-size: 16px;
}

textarea,
input[type="number"] {
  width: 100%;
  background-color: #111;
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-save,
.btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-save {
  background-color: orange;
  color: black;
}

.btn-save:hover {
  background-color: #ffae00;
}

.btn-delete {
  background-color: rgba(255, 0, 0, 0.2);
  color: #ff4c4c;
  border: 1px solid #ff4c4c;
}

.btn-delete:hover {
  background-color: red;
  color: white;
}


/* === PRZYCISKI / INPUTY === */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"],
textarea {
    background-color: #111;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

button {
    background-color: orange;
    color: black;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #ffae00;
    transform: scale(1.03);
}

/* === KARTY ZDJĘĆ === */
ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    justify-content: center;
}

li {
    background-color: #1c1c1c;
    padding: 10px;
    border-radius: 10px;
    width: 150px;
    text-align: center;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

li img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

li img:hover {
    transform: scale(1.05);
}

li a {
    color: red;
    font-size: 14px;
}

/* === LOGOWANIE === */
.login-box {
    max-width: 400px;
    margin: 120px auto;
    background-color: #1c1c1c;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.2);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    color: orange;
}

.login-box input,
.login-box button {
    margin-top: 10px;
}

/* === KARTA GALERII === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.gallery-card {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.1);
    transition: transform 0.2s ease;
}

.gallery-card:hover {
    transform: scale(1.03);
}

.gallery-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.delete-button {
    display: inline-block;
    color: #ff4c4c;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.delete-button:hover {
    color: red;
    text-decoration: underline;
}

/* === FORMULARZ DODAWANIA === */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.file-label {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid orange;
    color: orange;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.file-label:hover {
    background-color: orange;
    color: black;
}

.upload-form input[type="file"] {
    display: none;
}

.upload-form button {
    background-color: orange;
    color: black;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.upload-form button:hover {
    background-color: #ffae00;
}

/* === PRZYCISK POWROTU === */
.back-button {
    margin-top: 25px;
    display: inline-block;
    margin-bottom: 30px;
    margin-left: 10px;
    padding: 10px 18px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid orange;
    color: orange;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-button i {
    margin-right: 8px;
}

.back-button:hover {
    background-color: orange;
    color: black;
    text-decoration: none;
}

/* === LOGOWANIE: Nowoczesny panel === */
.login-glass {
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 165, 0, 0.15);
    text-align: center;
    color: white;
}

.login-glass h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: orange;
}

.login-glass form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 10px 15px;
}

.input-group i {
    color: orange;
    margin-right: 10px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
}

.login-glass button {
    padding: 12px;
    background-color: orange;
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-glass button:hover {
    background-color: #ffae00;
    transform: scale(1.03);
}

/* Komunikat błędu */
.error-msg {
    background-color: rgba(255, 0, 0, 0.2);
    color: red;
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.stat-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.stat-box {
  flex: 1 1 300px; /* rośnie, min. 300px */
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 2px solid orange;
  border-radius: 30px;
  padding: 10px 10px;
  text-align: center;
  color: white;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
}

.stat-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: orange;
}

.stat-box i {
  margin-right: 8px;
  color: orange;
}
.btn-approve {
  background-color: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 5px;
  display: inline-block;
}

.btn-approve:hover {
  background-color: #218838;
}


/* === RESPONSYWNOŚĆ: ekran <= 950px === */
@media (max-width: 950px) {

    .container {
        padding: 30px 15px;
    }

    h1,
    h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .nav-admin {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        height: auto;
        margin-top: 60px;
    }

    .nav-admin a {
        font-size: 16px;
        padding: 12px 20px;
        width: 80%;
        justify-content: center;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 12px;
    }

    .gallery-card {
        padding: 10px;
    }

    .gallery-card img {
        width: 100%;
        height: auto;
    }

    .upload-form {
        gap: 12px;
    }

    .upload-form button,
    .file-label {
        width: 90%;
        font-size: 15px;
        text-align: center;
    }

    .login-glass {
        margin: 50px 20px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .input-group {
        padding: 8px 12px;
        border-radius: 8px;
    }

    .input-group input {
        font-size: 15px;
    }

    .login-glass button {
        font-size: 15px;
        padding: 10px 16px;
    }

    .back-button {
        display: block;
        text-align: center;
        font-size: 15px;
        margin: 20px auto 30px;
    }
}