/* ===== OGÓLNY STYL ===== */
body {
    background: #0f0f14 !important;
    color: #eee !important;
    font-family: "Trebuchet MS", sans-serif !important;
    min-height: 100vh !important;
    margin: 0 !important;

    display: flex;
    justify-content: center; /* poziom */
    align-items: center;     /* pion */
}


/* ===== SIDEBAR ===== */
.sidebar {
    width: 220px;
    background: #111;
    padding: 30px 20px;
    min-height: 100vh;
    box-shadow: 0 0 20px #00000088, 0 0 10px #FFD1DC;
    position: fixed;
}

.sidebar h2 {
    color: #FFD1DC;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #FFD1DC;
}

.sidebar nav a {
    display: block;
    color: #FFD1DC;
    text-decoration: none;
    margin: 10px 0;
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.2s;
}

.sidebar nav a:hover {
    background: #FFD1DC;
    color: #0f0f14;
}

/* ===== GŁÓWNA TREŚĆ ===== */


/* ===== FORMULARZ ===== */
h1 {
    text-align: center !important;
    font-size: 2.6rem !important;
    margin-bottom: 30px !important;
    color: #FFD1DC !important;
    text-shadow: 0 0 15px #FFD1DC !important;
}

form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 600px !important;
    width: 100%;
}

form input[type="text"],
form input[type="email"],
form textarea {
    background: #111 !important;
    border: 2px solid #444 !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    color: #FFD1DC !important;
    outline: none !important;
    transition: border 0.3s, box-shadow 0.3s !important;
}

form textarea {
    min-height: 80px !important;
    resize: vertical !important;
}

form button {
    background: linear-gradient(135deg, #FFD1DC, #ffffff) !important;
    border: none !important;
    color: #0f0f14 !important;
    font-size: 1.1rem !important;
    padding: 12px 0 !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    box-shadow: 0 0 20px #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

form button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 35px #FFD1DC, 0 0 15px #ffffff !important;
}

.back-button {
    position: fixed; /* stała pozycja w oknie */
    top: 20px;       /* odstęp od góry */
    left: 20px;      /* odstęp od lewej krawędzi */
    z-index: 1000;   /* nad wszystkimi elementami */
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD1DC, #ffffff);
    color: #0f0f14;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 0 15px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #FFD1DC;
}

/* PODSTAWOWE */
* { box-sizing: border-box; margin:0; padding:0; }
body, html {
    height: 100%;
    font-family: 'Trebuchet MS', sans-serif;
    background: #0f0f14;
    color: #eee;
}

/* GŁÓWNY KONTENER */
.main-content {
    margin-left: 250px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

.main-content-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* SEKCJE */
.section {
    background: linear-gradient(145deg, #15151f, #1a1a27);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #FFD1DC;
    text-shadow: 0 0 10px #FFD1DC;
}

/* TABELKI */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* równomierne kolumny */
    word-wrap: break-word;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid #333;
    text-align: center;
    vertical-align: middle;
}

th { color: #FFD1DC; text-transform: uppercase; letter-spacing: 0.5px; }

/* KOLUMNA "O SOBIE" - textarea */
td textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    background:#111;
    color:#eee;
    border:1px solid #333;
    border-radius:6px;
    padding:8px;
    font-family: inherit;
    overflow-wrap: break-word;
}

/* STATUSY */
.status { font-weight:bold; text-shadow:0 0 5px currentColor; }
.status.Oczekujące { color:#FFD86B; }
.status.Zaakceptowane { color:#7CFF7C; }
.status.Odrzucone { color:#FF6B6B; }

/* PRZYCISKI */
.btn {
    padding:8px 16px;
    border-radius:10px;
    border:none;
    cursor:pointer;
    font-weight:bold;
    margin:2px;
    transition: transform 0.2s;
}
.btn:hover { transform: scale(1.05); }

.accept { background:#7CFF7C; color:#111; }
.reject { background:#FF6B6B; color:#111; }
.note-btn { background:#FFD1DC; color:#111; }

/* SUWAK REKRUTACJI */
.recruitment-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.switch { position: relative; display:inline-block; width:60px; height:28px; }
.switch input { display:none; }
.slider {
    position:absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to right, #FF6B6B, #7CFF7C);
    border-radius:34px;
    transition:0.4s;
}
.slider:before {
    position:absolute;
    content:"";
    height:22px; width:22px;
    left:3px; bottom:3px;
    background:#111; border-radius:50%;
    transition:0.4s;
}
input:checked + .slider:before { transform:translateX(32px); }

.recruitment-text {
    font-weight: bold;
    font-size: 1.1rem;
}

/* MODALE */
#noteFormModal, #noteViewModal {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#noteFormModal > div, #noteViewModal > div {
    background: linear-gradient(135deg, #15151f, #1a1a27);
    padding: 25px;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

#noteFormModal h3, #noteViewModal h3 {
    text-align: center;
    color: #FFD1DC;
    margin-bottom: 15px;
}

#noteFormModal textarea, #noteViewModal p {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    color: #eee;
    font-family: inherit;
    min-height: 60px;
    overflow-wrap: break-word;
}

textarea.auto-resize {
    resize: none !important;
    overflow: hidden !important;
    min-height: 80px !important;
    line-height: 1.5 !important;
    transition: height 0.15s ease !important;
}

form textarea { resize: vertical !important; }
td textarea { resize: vertical; }
