﻿/* ===== ZMIENNE ===== */
.marginTop10 {
  margin-top: 10px;
}
.marginBottom10 {
  margin-bottom: 10px;
}
.marginRight0 {
  margin-right: 0px;
}
.marginRight5 {
  margin-right: 5px;
}
.marginRight10 {
  margin-right: 10px;
}
.margin0 {
  margin: 0px;
}
.szerokosc80 {
  width: 80px;
}
.szerokoscAuto {
  width: auto;
}
.errorKolor {
  color: #f96967;
}
.kolorBialy {
  color: white;
}
.colorInfo {
  color: #6495ed;
}
.colorBlack {
  color: black;
}
.tab-button.dodajButton:disabled {
  background: #35425a;
  padding: 5px 10px;
}
.tab-button.dodajButton {
  background: #c31035;
  padding: 5px 10px;
}
.tab-button.usunButton {
  background: #531f2a;
  padding: 5px 10px;
}
.tab-button.edytujButton {
  background: #00774e;
  padding: 5px 10px;
}
.alert {
  margin-bottom: 10px;
}
.validation-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}
@media (max-width: 992px) {
  .marginTop10Mobile {
    margin-top: 10px;
  }
}
@media (min-width: 993px) {
  .marginRight5Desktop {
    margin-right: 5px;
  }
}
/* ===== RESET ===== */
body,
html {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
  color: #333;
}
a {
  text-decoration: none;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
/* ===== BUTTON ===== */
.btn-primary {
  background: #b11226;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.btn-primary:hover {
  background: #7a0c1a;
}
/* ===== LOGIN PAGE ===== */
.login-wrapper,
.login-layout {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f6f9;
  padding: 20px;
  background: #282931;
}
.login-container {
  display: block;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
}
.login-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  background: #5d697c;
  color: white;
}
.login-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  flex-direction: column;
}
.login-image img {
  max-width: 100%;
  max-height: 280px;
  height: auto;
}
.login-form {
  flex: 1;
  min-width: 320px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* RESPONSYWNOŚĆ LOGIN */
@media (max-width: 992px) {
  .login-card,
  .login-container {
    max-width: 700px;
  }
  .login-form,
  .login-image {
    padding: 30px;
  }
}
@media (max-width: 768px) {
  .login-card,
  .login-container {
    flex-direction: column;
    border-radius: 12px;
  }
  .login-form {
    width: 100%;
    padding: 30px 20px;
  }
}
@media (max-width: 480px) {
  .login-wrapper,
  .login-layout {
    padding: 10px;
  }
  .login-form {
    padding: 20px 15px;
  }
  .btn {
    font-size: 0.9rem;
  }
}
/* ===== APP LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}
/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: #14151a;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  position: fixed;
  left: 0px;
  top: 0;
  height: 100%;
  z-index: 1000;
  overflow-y: auto;
}
.sidebar.open {
  left: 0;
}
.sidebar .sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 10px;
}
.sidebar .sidebar-header .sidebar-logo {
  max-width: 80px;
  margin-bottom: 10px;
}
.sidebar .sidebar-header .sidebar-title {
  font-size: 18px;
  font-weight: bold;
  color: #b11226;
}
.sidebar .sidebar-nav {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sidebar .sidebar-nav .nav-link {
  color: #c9c9c9;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.sidebar .sidebar-nav .nav-link:hover {
  background: rgba(177, 18, 38, 0.15);
  color: white;
}
.sidebar .sidebar-nav .nav-link.active {
  background: rgba(177, 18, 38, 0.25);
  border-left: 3px solid #b11226;
  color: white;
}
.sidebar .sidebar-nav .logout-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 12px 20px;
  color: #c9c9c9;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar .sidebar-nav .logout-btn:hover {
  background: rgba(177, 18, 38, 0.15);
  color: white;
}
/* ===== MAIN AREA ===== */
.main-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
  background: #1f2633e3;
}
@media only screen and (max-width: 992px) {
  .main-area {
    margin-left: 0px !important;
  }
}
@media only screen and (min-width: 993px) {
  .main-area {
    margin-left: 260px;
  }
}
.main-area.shifted {
  margin-left: 260px;
}
/* ===== TOPBAR ===== */
.topbar {
  height: 60px;
  background: #f4f6f9;
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid #e3e3e3;
}
.topbar .brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-left: 15px;
}
.topbar .brand .brand-accent {
  font-weight: 800;
  font-size: 20px;
  color: #b11226;
}
.topbar .brand .brand-sub {
  font-size: 14px;
  color: #666;
}
/* ===== CONTENT AREA ===== */
.content-area {
  padding: 10px;
}
@media only screen and (max-width: 992px) {
  .content-area {
    padding: 0 !important;
  }
}
/* ===== MOBILE MENU TOGGLE ===== */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1100;
  background: #b11226;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.5rem;
  visibility: hidden;
}
.menu-toggle span {
  font-size: 1.5rem;
}
@media (max-width: 992px) {
  .menu-toggle {
    display: inline-block;
    visibility: visible;
  }
}
/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #14151a;
    z-index: 999;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-overlay {
    display: block;
  }
  .close-sidebar {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
  }
  .sidebar.open {
    left: 0;
  }
  .main-area.shifted {
    margin-left: 0px !important;
  }
  .topbar .brand {
    margin-left: 35px !important;
  }
}
.colorBialy {
  color: white;
}
.card-section {
  background: #1f2633;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.section-header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 1px solid #2f3a4d;
  padding-bottom: 10px;
  color: #b11226;
}
.tabs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-inline-start: 0;
}
.tab-button {
  background: #2a3446;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #ccc;
  transition: 0.2s;
}
.tab-button:hover {
  background: #35425a;
}
.tab-button.active {
  background: #3b151d;
  color: white;
}
.units-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.unit-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.unit-name {
  min-width: 140px;
  height: 60px;
  background: #2a3446;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.unit-level {
  width: 100px;
  max-width: 100px;
  height: 60px;
  background: #243044;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.action-icon {
  position: absolute;
  bottom: -10px;
  right: -5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 24px;
}
.action-icon.add {
  color: #4cae4c;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}
.resource-card {
  background: #243044;
  padding: 12px;
  border-radius: 10px;
}
.resource-card span {
  color: white;
}
.resource-value {
  font-size: 18px;
  font-weight: bold;
}
.resource-value.green {
  color: #4cae4c;
}
.resource-value.red {
  color: #e74c3c;
}
.calculation-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.calc-column {
  background: #2a3446;
  padding: 15px;
  border-radius: 10px;
  color: white;
}
.production-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #3a465c;
}
.production-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.production-title {
  font-weight: 600;
}
.production-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.input-amount {
  width: 80px;
}
.production-remove {
  cursor: pointer;
}
.production-header-item {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #3a465c;
}
.glyphicon.glyphicon-trash {
  color: red;
}
.tab-pane {
  color: white;
}
.form-control {
  padding: 0px 12px !important;
  height: 26px !important;
}
label {
  font-weight: 400 !important;
}
.section-body {
  color: #ccc;
}
/* ===== CALENDAR ===== */
.calendar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  background: #14151a;
  padding: 5px;
  border-radius: 10px;
}
.month-column {
  background: #f8f9fa;
  background: #14151a;
}
.month-header {
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
}
.day-cell {
  background: #394459;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 6px;
  min-height: 15px;
  cursor: pointer;
  display: flex;
}
.day-cell:hover {
  background: #eef4ff;
}
.day-number {
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
  margin-right: 5px;
}
.event {
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  width: -webkit-fill-available;
}
.day-cell.weekend {
  background: #5d6778;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.custom-modal {
  background: #363c47;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
}
.modal-content {
  text-align: center;
  box-shadow: none !important;
  border: none !important;
  background: #363c47;
  color: white;
}
.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}