/* assets/css/style.css */

/* --- Global Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* --- Topbar --- */
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0052cc;
    color: #fff;
    padding: 0 20px;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  .topbar .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
  }
  .topbar .search input {
    width: 200px;
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
  }
  .topbar .actions {
    display: flex;
    align-items: center;
  }
  .topbar .actions .btn-icon {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 8px;
    cursor: pointer;
  }
  .topbar .actions .profile {
    display: flex;
    align-items: center;
    margin-left: 12px;
    cursor: pointer;
  }
  .topbar .actions .profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
  }
  .topbar .actions .profile .info span {
    display: block;
    font-weight: bold;
  }
  .topbar .actions .profile .info small {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
  }
  
  /* --- Sidebar --- */
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 60px;
    bottom: 0;
    background: #0e1a2b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 999;
  }
  .sidebar ul {
    list-style: none;
    width: 100%;
  }
  .sidebar ul li {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 20px 0;
  }
  .sidebar ul li a {
    color: #ccc;
    font-size: 1.4rem;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px 0;
  }
  .sidebar ul li a:hover {
    color: #fff;
  }
  .sidebar ul li a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    display: none;
    font-size: 0.85rem;
  }
  .sidebar ul li a:hover::after {
    display: block;
  }
  
  /* --- Main Content Wrapper --- */
  .main {
    margin-left: 60px;
    margin-top: 60px;
    padding: 20px;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
  }
  
  /* --- Dashboard Grid --- */
  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  .card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;          /* négyoldali egységes padding */
    padding-top: 60px;      /* extra hely a felső sparkline-nak */
    overflow: hidden;
  }
  .card h3,
.card .big,
.card small {
  position: relative;  /* maradjon a padding-top alatt */
  z-index: 1;
}
  .card canvas {
    position: absolute;
    top: 15px;           /* 15px le a kártya tetejétől */
    right: 15px;         /* 15px be a jobb szélétől */
    width: 80px !important;   /* fix szélesség */
    height: 30px !important;  /* fix magasság */
  }
  .card-green { border-top: 4px solid #27ae60; }
  .card-red   { border-top: 4px solid #c0392b; }
  .card-yellow{ border-top: 4px solid #f1c40f; }
  .card-blue  { border-top: 4px solid #2980b9; }
  
  /* --- Middle Section --- */
  .dashboard-mid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .latest-bookings,
  .bookings-summary,
  .side-cards {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
  }
  .latest-bookings ul {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
  }
  .latest-bookings li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
  }
  .latest-bookings .time {
    float: right;
    color: #999;
  }
  .bookings-summary {
    position: relative;
  }
  .bookings-summary canvas {
    width: 100% !important;
    height: 150px !important;
  }
  .bookings-summary .big {
    font-size: 1.8rem;
  }
  .side-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .small-card {
    padding: 15px;
  }
  .small-card .big {
    font-size: 1.3rem;
    margin: 0;
  }
  
  /* --- Bottom Section --- */
  .dashboard-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }
  .chart-large,
  .chart-small {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .chart-large canvas {
    width: 100% !important;
    height: 200px !important;
  }
  .chart-small canvas {
    width: 100% !important;
    height: 180px !important;
  }
  



  /* --- Properties Page --- */
.property-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .property-form .form-group {
    margin-bottom: 15px;
  }
  .property-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
  }
  .property-form input[type="text"],
  .property-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .property-form button {
    background: #0052cc;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
  }
  .property-form button:hover {
    background: #003d99;
  }
  
  .property-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
  .property-card {
    flex: 0 0 15%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform .2s;
  }
  .property-card:hover {
    transform: translateY(-4px);
  }
  
  /* a kép 150px magas, full-width */
  .property-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  
  /* a cím alul, középre igazítva */
  .property-card .title {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #333;
    flex-grow: 1;
  }
  .property-card a {
    color: inherit;
    text-decoration: none;
  }
  .property-card a:hover .title {
    color: #0052cc;
  }
  


/* --- Calendar Page Styling --- */
#calendar {
    max-width: 900px;
    margin: 20px auto;
    min-height: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
  }
  
  /* Foglalás űrlap modernizálása */
  #booking-form {
    max-width: 900px;
    margin: 30px auto 60px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
  }
  #booking-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
  }
  #booking-form input,
  #booking-form select,
  #booking-form button {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  #booking-form button {
    background: #0052cc;
    color: #fff;
    border: none;
    cursor: pointer;
    grid-column: 1/ -1;
  }
  #booking-form button:hover {
    background: #003d99;
  }
  
  /* FullCalendar vezérlők stílusa */
  .fc .fc-button {
    background-color: #0052cc;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
  }
  .fc .fc-button:hover {
    background-color: #003d99;
  }
  .fc .fc-toolbar-title {
    font-size: 1.4rem;
    font-weight: bold;
  }
  


  /* --- Expenses Page Styling --- */
.expense-form {
    max-width: 900px;
    margin: 30px auto 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
  }
  
  .expense-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: #333;
  }
  
  .expense-form input,
  .expense-form select,
  .expense-form button {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  .expense-form button {
    background: #0052cc;
    color: #fff;
    border: none;
    cursor: pointer;
    grid-column: 1 / -1;
  }
  
  .expense-form button:hover {
    background: #003d99;
  }
  
  .expenses-table {
    max-width: 900px;
    margin: 20px auto;
    border-collapse: collapse;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .expenses-table th,
  .expenses-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
  }
  
  .expenses-table thead {
    background: #0052cc;
    color: #fff;
  }
  
  .expenses-table tbody tr:nth-child(even) {
    background: #f9f9f9;
  }
  
  .summary-table {
    max-width: 900px;
    margin: 20px auto 40px;
    border-collapse: collapse;
    width: 100%;
  }
  
  .summary-table th,
  .summary-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
  }
  
  .summary-table thead {
    background: #27ae60;
    color: #fff;
  }
  


  /* --- Register Page Styling --- */
.register-form {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.register-form h1 {
  text-align: center;
  font-size: 1.5rem;
  color: #0052cc;
}

.register-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

.register-form input {
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.register-form input:focus {
  outline: none;
  border-color: #0052cc;
  box-shadow: 0 0 0 2px rgba(0,82,204,0.2);
}

.register-form button {
  padding: 12px;
  background: #0052cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .2s;
}

.register-form button:hover {
  background: #003d99;
}

.error-list {
  background: #ffe6e6;
  color: #8a1f11;
  padding: 12px;
  border-radius: 4px;
}

.success-msg {
  background: #e6ffed;
  color: #256029;
  padding: 12px;
  border-radius: 4px;
}


/* --- Property Detail Page --- */
.property-detail {
  max-width: 1000px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 30px;
}

.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-gallery .main-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-gallery .thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.image-gallery .thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.image-gallery .thumbs img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.property-info h2 {
  margin-top: 0;
  color: #0052cc;
}

.property-info p {
  line-height: 1.5;
  margin: 10px 0;
}

.property-info .specs {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.property-info .specs div {
  background: #f2f2f2;
  padding: 12px 16px;
  border-radius: 6px;
  text-align: center;
}

.property-info .specs div span {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.property-info .edit-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background: #0052cc;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background .2s;
}

.property-info .edit-btn:hover {
  background: #003d99;
}

.edit-btn {
  display: inline-block;
  background: #0052cc;
  color: #fff !important;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 10px;
  margin-right: 6px;
  font-size: 0.99rem;
  transition: background 0.17s;
}
.edit-btn i {
  margin-right: 4px;
}
.edit-btn:hover {
  background: #003b8c;
}

