/* main.css */

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f0f0f0;
}

/* Przyciski */


.btn {

    border: none;
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin: 2px;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.btn-edit   {
    background: #28a745;
    color: #fff;
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
}

.btn-delete2   {
    background: #dc3545;
    ;
    color: #fff;
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
}
.btn-delete {
    background: #dc3545;
    color: #fff;
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    /*width: 100%;*/
}

.btn-export {
    background: #007bff;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}
.btn-back   {
    margin-top: 20px;
    display: block;
    padding: 8px 12px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.message.error   {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.message.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.message.info    {
    background: #cce5ff;
    color: #004085;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}





label {
    display: block;
    margin-top: 10px;
}
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    box-sizing: border-box;
}


table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background: #f0f0f0;
}

.btn-share {
    background: #17a2b8;
    color: #fff;
}
.btn-token {
    background: #ffc107;
    color: #000;
}
.btn-view {
    background: #17a2b8;
    color: #fff;
}
.btn-new  {
    background: #007bff;
    color: #fff;
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}
.btn-logout {
    background: red;
    color: #fff;
    font-size: 0.9em;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 15px;
}
.message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
}
.message.success {
    background: #d4edda;
    color: #155724;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
form.inline {
    display: inline-block;
}

button{
    
    border: none;
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;

}

/* Nagłówek i menu */
.site-header {
  background: #007bff;
  padding: 10px 0;
  margin-bottom: 20px;
  margin-left: auto;
  width: 100%
}
.logo{
    position: fixed;
    bottom: 10px;
    width: 10%;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-item {
  margin-right: 20px;
}

.nav-item:last-child {
  margin-right: 0;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
}

.user-text {
  color: #fff;
  margin-right: 15px;
  font-size: 0.95em;
}

/* Styl dla wiersza z ghost=1 */
.row-ghost {
  color: #777;
  text-decoration: line-through;
  background-color: #f9f9f9;
}

/* Wyłączony przycisk .btn-edit oraz .btn-delete */
.btn-edit[disabled],
.btn-delete[disabled] {
 display: none;
}

#logo {
  margin-bottom: 20px;
  text-align: center;
}

#logo img {
  max-height: 150px;
  width: auto;
  display: inline-block;
}

.btn-notif-off {
  background: #fff;
  color: #c71585;        /* magenta */
  border: 2px solid #c71585;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.85em;
  cursor: pointer;
  margin-top: 4px;
}

.btn-notif-on {
  background: #c71585;   /* pełna magenta */
  color: #fff;
  border: 2px solid #c71585;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.85em;
  cursor: pointer;
  margin-top: 4px;
}
.btn-add-save {
  background: #c71585;   /* pełna magenta */
  color: #fff;
  border: 2px solid #c71585;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.85em;
  cursor: pointer;
  margin-top: 4px;
}