/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f7fc;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 530px;
    text-align: center;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4a90e2;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #777;
}

input,
button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus,
button:hover {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

button {
    background-color: #4a90e2;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

button:active {
    background-color: #357ab7;
}

.output-success, .output-error {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    max-width: 80%;
    margin: 20px auto;
}

.output-success { background-color: #4CAF50; }
.output-error { background-color: #e74c3c; }

.refresh-button {
    margin: -10px;
    width: 40px;
    height: 40px;
    background: transparent url('images/refresh.png') center/contain no-repeat;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-button:hover { transform: scale(1.1); }
.refresh-button.rotate { transform: rotate(180deg); }

.drop-zone {
    border: 2px dashed #4a90e2;
    border-radius: 10px;
    padding: 20px 20px 4px;
    text-align: center;
    cursor: pointer;
    background-color: #f4f7fc;
    color: #4a90e2;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.drop-zone.drag-over-green {
    background-color: #e9f7ef !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.file-count {
    font-size: 12px;
    color: #4a90e2;
    margin-top: 8px;
    font-weight: bold;
}

.admin-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    background-color: #2C3E50;
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar ul li a:hover { background-color: #1A252F; }

.main-content {
    flex-grow: 1;
    margin-left: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: calc(100vw - 250px);
}

.szyfrator-iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

@media (max-width: 768px) {
    .admin-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; text-align: center; }
    .main-content { margin-left: 0; width: 100%; height: auto; }
    .szyfrator-iframe { height: 85vh; }
}

.users-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 40px auto;
}

.users-header {
    font-size: 24px;
    color: #4a90e2;
    margin-bottom: 20px;
    font-weight: bold;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    background: white;
    padding: 10px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    background-color: #f4f7fc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.users-table th {
    background-color: #4a90e2;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #333;
    background-color: white;
}

.users-table tr:hover {
    background-color: #e6f0ff;
}

.edit-button {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.edit-button:hover {
    background-color: #357ab7;
}

.add-user-container {
    margin-top: 20px;
}

.add-user-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.add-user-button:hover {
    background-color: #3d8b40;
}

/* Responsywność */
@media (max-width: 768px) {
    .users-container {
        padding: 20px;
        width: 90%;
    }
    .users-table th, .users-table td {
        font-size: 12px;
        padding: 10px;
    }
    .edit-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 📌 Pasek górny ----------------------------------------------------------------------------- */
/* 📌 Pasek górny */
.top-bar {
    background-color: #2C3E50;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 250px; /* Dopasowanie do szerokości sidebaru */
    width: calc(100% - 250px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    z-index: 1000;
}

/* 📌 Informacje o użytkowniku */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

/* 📌 Przycisk wylogowania */
.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background-color: #4A90E2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    z-index: 1000;
    transition: background-color 0.2s;
}

.logout-button:hover {
    background-color: #c9302c;
}


/* 📌 Naprawa problemu z niewidocznym paskiem */
.main-content {
    margin-left: 250px; /* Dostosowanie do szerokości sidebaru */
    margin-top: 50px;  /* Ustąpienie miejsca na pasek górny */
    height: calc(100vh - 50px); /* Dopasowanie wysokości */
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100vw - 250px);
}

/* 📌 Responsywność dla mobilnych */
@media (max-width: 768px) {
    .top-bar {
        left: 0;
        width: 100%;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

        /* Loader style */
        .loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #4a90e2;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 2s linear infinite;
            margin: 20px auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
		
.info-text2 {
	font-family: 'Arial', sans-serif;
    font-size: 12px; /* lub np. 11px, jeśli chcesz jeszcze mniejszą */
    color: #666; /* opcjonalnie delikatniejszy kolor tekstu */
    margin-top: -15px; /* opcjonalnie mniejszy odstęp */
}

.toggle-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: -10px; /* 🔼 Podnosi przyciski o 15px */
    margin-bottom: 10px;
}

.toggle-buttons-row .toggle-message-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 8px;
    border: 1px solid #4a90e2;
    background-color: white;
    color: #4a90e2;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-buttons-row .toggle-message-btn:hover {
    background-color: #4a90e2;
    color: white;
}

#subjectContainer input {
    width: 100%;
    margin-top: 1px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

#messageContainer textarea {
    width: 100%;
    margin-top: 1px;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    transition: all 0.3s;
}

#messageContainer textarea::placeholder {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #777;
}
