/* ================================
   Google Fonts
   - Body: Open Sans
   - Utilities (text*): Poppins (400–900)
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ================================
   Base / Reset
   ================================ */
* {
  list-style: none;
  text-decoration: none;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  background: #f5f6fa;
  font-family: 'Open Sans', sans-serif;
}

/* Ensure all utilities beginning with 'text' use Poppins */
[class^="text"], [class*=" text"] {
  font-family: 'Poppins', sans-serif !important;
}

/* ================================
   Colours / Helpers
   ================================ */
.text-purple { color: #7D2F79 !important; }
.bg-purple   { background-color: #7D2F79 !important; }

.c-only-bottom-border {
  border: none !important;
  border-bottom: 1px solid rgb(226, 223, 223) !important;
}

.c-no-border { border: none !important; }
.c-vh-100    { height: 100vh; }
.c-h-100vh   { height: 100vh !important; }
.c-logged-in  { color: green; }
.c-logged-out { color: red; }

.c-accordian        { background-color: rgb(41, 48, 66) !important; }
.c-mail-layout-bg   { background-color: #e1e7ec; }
.c-no-text-decoration { text-decoration: none; }

.vl {
  border-left: 3px solid rgb(91, 189, 91);
  height: 50px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: rgb(136, 13, 13);
  border-radius: 50%;
  display: inline-block;
}

/* Status backgrounds */
.bgc-green  { background-color: rgb(155, 238, 155) !important; }
.bgc-orange { background-color: #f19b68 !important; }
.bgc-red    { background-color: rgb(233, 152, 152) !important; }

/* ================================
   Buttons / Layout helpers
   ================================ */
.relative-container { position: relative; display: inline-block; }

.download-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background-color: #fff;
  padding: 5px 10px;
}

/* Sticky header for print-like layouts */
.c-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.break { page-break-after: always; }
.break-before { page-break-before: always; }

.cardCenter { margin: 3em !important; }


/* ================================
  calander layout
   ================================ */

    .calendar-container {
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin: 20px;
    }

    .calendar-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e9ecef;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }

    .calendar-header h2 {
        color: #7D2F79;
        font-weight: 600;
        margin: 0;
    }

    .add-event-btn {
        background-color: #7D2F79;
        border-color: #7D2F79;
        color: white;
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 8px;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    .add-event-btn:hover {
        background-color: #6a2a6a;
        border-color: #6a2a6a;
        color: white;
        text-decoration: none;
    }

    /* FullCalendar custom styling to match theme */
    .fc {
        font-family: 'Open Sans', sans-serif;
    }

    .fc-toolbar-title {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        color: #7D2F79;
    }

    .fc-button-primary {
        background-color: #7D2F79 !important;
        border-color: #7D2F79 !important;
    }

    .fc-button-primary:hover {
        background-color: #6a2a6a !important;
        border-color: #6a2a6a !important;
    }

    .fc-button-primary:focus {
        background-color: #7D2F79 !important;
        border-color: #7D2F79 !important;
        -webkit-box-shadow: 0 0 0 0.2rem rgba(125, 47, 121, 0.25) !important;
                box-shadow: 0 0 0 0.2rem rgba(125, 47, 121, 0.25) !important;
    }

    .fc-daygrid-day.fc-day-today {
        background-color: rgba(125, 47, 121, 0.1) !important;
    }

    .fc-event {
        background-color: #7D2F79 !important;
        border-color: #7D2F79 !important;
        cursor: pointer;
    }

    .fc-event:hover {
        background-color: #6a2a6a !important;
        border-color: #6a2a6a !important;
    }

    /* Event type specific colors */
    .fc-event.meeting {
        background-color: #7D2F79 !important;
        border-color: #7D2F79 !important;
    }

    .fc-event.note {
        background-color: #ffc107 !important;
        border-color: #ffc107 !important;
        color: #212529 !important;
    }

    .fc-event.task {
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
    }

    .fc-event.reminder {
        background-color: #6c757d !important;
        border-color: #6c757d !important;
    }

    /* Modal styling */
    .modal-header {
        background-color: #7D2F79;
        color: white;
    }

    .modal-header .modal-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: white !important;
    }

    .modal-header .btn-close {
        -webkit-filter: invert(1);
                filter: invert(1);
    }

    .form-label {
        font-weight: 600;
        color: #495057;
    }

    .form-control:focus {
        border-color: #7D2F79;
        -webkit-box-shadow: 0 0 0 0.2rem rgba(125, 47, 121, 0.25);
                box-shadow: 0 0 0 0.2rem rgba(125, 47, 121, 0.25);
    }

    .btn-primary {
        background-color: #7D2F79;
        border-color: #7D2F79;
    }

    .btn-primary:hover {
        background-color: #6a2a6a;
        border-color: #6a2a6a;
    }

    .btn-danger {
        background-color: #dc3545;
        border-color: #dc3545;
    }

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

    /* Three-panel layout styling */
    .calendar-panel {
        background: #fff;
        border-radius: 8px;
        -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 15px;
        margin-bottom: 20px;
    }

    .calendar-panel h4 {
        color: #7D2F79;
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 16px;
    }

    /* Small month view styling */
    #monthCalendar .fc-daygrid-day {
        min-height: 30px;
    }

    #monthCalendar .fc-daygrid-day-number {
        font-size: 12px;
    }

    /* Compact navigation for month view */
    #monthCalendar .fc-toolbar {
        padding: 8px 0;
        margin-bottom: 10px;
    }

    #monthCalendar .fc-toolbar-title {
        font-size: 14px;
        font-weight: 600;
    }

    #monthCalendar .fc-button {
        padding: 4px 8px;
        font-size: 12px;
    }

    #monthCalendar .fc-prev-button,
    #monthCalendar .fc-next-button {
        min-width: 30px;
        height: 30px;
    }

    /* List view event styling */
    .fc-list-event {
        background-color: rgba(125, 47, 121, 0.1) !important;
        /* Very light transparent purple */
        border-radius: 4px;
        margin-bottom: 2px;
    }

    .fc-list-event:hover {
        background-color: rgba(125, 47, 121, 0.2) !important;
        /* Slightly darker on hover */
    }

    .fc-list-event-dot {
        background-color: #7D2F79 !important;
        /* Keep dot color as original purple */
    }

    /* Month view event styling - same as list view */
    #monthCalendar .fc-event {
        background-color: rgba(125, 47, 121, 0.1) !important;
        /* Very light transparent purple */
        border-radius: 4px;
        margin-bottom: 2px;
        padding: 2px 4px;
    }

    #monthCalendar .fc-event:hover {
        background-color: rgba(125, 47, 121, 0.2) !important;
        /* Slightly darker on hover */
    }

    /* Hide event details in month view, show only title */
    #monthCalendar .fc-event-title {
        font-size: 11px;
        font-weight: 500;
        color: #495057;
    }

    #monthCalendar .fc-event-time {
        display: none !important;
        /* Hide time */
    }

    #monthCalendar .fc-event-dot {
        display: none !important;
        /* Hide event dot */
    }

    /* Completely disable all scrolling in month view */
    .calendar-panel {
        overflow: hidden;
    }

    #monthCalendar {
        overflow: hidden !important;
    }

    #monthCalendar .fc-view-harness {
        overflow: hidden !important;
    }

    #monthCalendar .fc-scrollgrid {
        overflow: hidden !important;
    }

    #monthCalendar .fc-scrollgrid-section-body {
        overflow: hidden !important;
    }

    #monthCalendar .fc-scrollgrid-section-header {
        overflow: hidden !important;
    }

    /* Make month view compact but readable */
    #monthCalendar .fc-daygrid-day {
        min-height: 35px;
        max-height: 35px;
    }

    #monthCalendar .fc-daygrid-day-number {
        font-size: 13px;
        line-height: 1.3;
    }

    #monthCalendar .fc-col-header-cell {
        min-height: 25px;
        max-height: 25px;
    }

    #monthCalendar .fc-col-header-cell-cushion {
        font-size: 12px;
        line-height: 1.3;
        font-weight: 600;
    }

    /* List view styling */
    #listCalendar .fc-list-event {
        padding: 8px 12px;
        border-radius: 4px;
        margin-bottom: 4px;
    }

    #listCalendar .fc-list-event-title {
        font-weight: 500;
    }

    /* Work Orders table styling */
    #workOrdersTableBody tr {
        cursor: pointer;
        -webkit-transition: background-color 0.2s;
        transition: background-color 0.2s;
    }

    #workOrdersTableBody tr:hover {
        background-color: rgba(125, 47, 121, 0.1) !important;
    }

    #workOrdersTableBody td {
        padding: 8px 6px;
        font-size: 12px;
        vertical-align: middle;
    }

    #workOrdersTableBody .text-truncate {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #listCalendar .fc-list-event-time {
        color: #6c757d;
        font-size: 12px;
    }

/* ================================
   Sidebar Layout
   ================================ */
.wrapper .sidebar {
  background: #7D2F79;
  position: fixed;
  top: 0;
  left: 0;
  width: 225px;
  height: 100%;
  padding: 20px 0;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.wrapper .sidebar .profile {
  margin-bottom: 30px;
  text-align: center;
}

.wrapper .sidebar .profile img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
}

.wrapper .sidebar .profile h3 {
  color: #ffffff;
  margin: 10px 0 5px;
}

.wrapper .sidebar .profile p {
  color: rgb(206, 240, 253);
  font-size: 14px;
}

.wrapper .sidebar ul li a {
  display: block;
  padding: 13px 30px;
  color: rgb(241, 237, 237);
  font-size: 16px;
  position: relative;
}

.wrapper .sidebar ul li a .icon {
  color: #dee4ec;
  width: 30px;
  display: inline-block;
}

.wrapper .sidebar ul li a:hover,
.wrapper .sidebar ul li a.active {
  color: #0c7db1;
  background: #7D2F99; /* slightly lighter than #7D2F79 */
  border-right: 2px solid rgb(5, 68, 104);
}

.wrapper .sidebar ul li a:hover .icon,
.wrapper .sidebar ul li a.active .icon {
  color: #0c7db1;
}

/* Content area aligned to 225px sidebar */
.wrapper .section {
  width: calc(100% - 225px);
  margin-left: 225px;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.wrapper .section .top_navbar {
  background: #7D2F99 !important;
  height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 30px;
}

.wrapper .section .top_navbar .hamburger a {
  font-size: 28px;
  color: #f4fbff;
}

.wrapper .section .top_navbar .hamburger a:hover {
  color: #a2ecff;
}

/* Collapsed state */
body.active .wrapper .sidebar { left: -225px; }
body.active .wrapper .section {
  margin-left: 0;
  width: 100%;
}

/* ================================
   Google-style coloured "G" text
   ================================ */
.fa-google {
  background:
    linear-gradient(to bottom left, transparent 49%, #fbbc05 50%) 0 25% / 48% 40%,
    linear-gradient(to top    left, transparent 49%, #fbbc05 50%) 0 75% / 48% 40%,
    linear-gradient(-40deg, transparent 53%, #ea4335 54%),
    linear-gradient( 45deg, transparent 46%, #4285f4 48%),
    #34a853;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ================================
   Event Card
   (kept single, de-duplicated)
   ================================ */
.event-cardCenter{
  padding: 1.5em .5em .5em !important;
  border-radius: 2em !important;
  background-color: #c8dff5;
  -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2) !important;
          box-shadow: 0 5px 10px rgba(0,0,0,.2) !important;
}

/* ================================
   Arrow Label Row (Breadcrumb-like)
   ================================ */
.box {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  text-align: center;
  overflow: hidden;
  background-color: #fff;
}

.box-item {
  display: block;
  position: relative;
  float: left;
  width: calc(100% / 7 - 7px);
  height: 40px;
  line-height: 40px;
  margin-right: 10px;
  padding: 0 10px;
  background-color: #fcc;
  border-radius: 4px;
  color: #fff;
}

.box-item:before {
  content: "";
  position: absolute;
  right: -9px;
  height: 0;
  width: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 10px solid rgb(207, 32, 32);
  border-radius: 4px;
}

.box-item:after {
  content: "";
  position: absolute;
  left: -1px;
  height: 0;
  width: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 10px solid #fff;
  border-radius: 4px;
}

.box-item:first-child:after { display: none; }
.box-item:last-child { margin-right: 0; }
.box-item:last-child:before { display: none; }

/* ================================
   Tables
   ================================ */
.table_head{
  color: #646464 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem !important;
  font-style: normal !important;
  font-weight: 500 !important;
  padding: 0.75rem 1rem !important;
  line-height: 2rem !important; 
  background-color: #F8F8F8 !important;
}

.table_row{
  height: 2.75rem;
  padding: 0.75rem 1rem;
}

.table_data{
  padding: 0.75rem 1rem !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
}

/* ================================
   Typography utilities (Poppins)
   Naming convention: text[fontSize][weight]
   - 12px  => 0.85rem (approx)
   - 13px  => 0.8125rem
   - 14px  => 0.875rem
   - 16px  => 1rem
   - 18px  => 1.125rem
   - 20px  => 1.25rem
   - 25px  => 1.5rem
   ================================ */

/* 12px (~0.85rem) */
.text12400 { font-size: 0.85rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.5 !important; }
.text12500 { font-size: 0.85rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.5 !important; }
.text12600 { font-size: 0.85rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.5 !important; }
.text12800 { font-size: 0.85rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 1.5 !important; }

/* 13px (0.8125rem) */
.text13400 { font-size: 0.8125rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.5 !important; }
.text13500 { font-size: 0.8125rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.5 !important; }
.text13600 { font-size: 0.8125rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.5 !important; }
.text13800 { font-size: 0.8125rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 1.5 !important; }

/* 14px (0.875rem) */
.text14400 { font-size: 0.875rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.5 !important; }
.text14500 { font-size: 0.875rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.5 !important; }
.text14600 { font-size: 0.875rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.5 !important; }
.text14800 { font-size: 0.875rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 1.5 !important; }

/* 16px (1rem) */
.text16400 { font-size: 1rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 24px !important; }
.text16500 { font-size: 1rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 24px !important; }
.text16600 { font-size: 1rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 24px !important; }
.text16700 { font-size: 1rem !important; font-style: normal !important; font-weight: 700 !important; line-height: 24px !important; }
.text16800 { font-size: 1rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 24px !important; }
.text16900 { font-size: 1rem !important; font-style: normal !important; font-weight: 900 !important; line-height: 24px !important; }

/* 18px (1.125rem) */
.text18400 { font-size: 1.125rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.5 !important; }
.text18500 { font-size: 1.125rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.5 !important; }
.text18600 { font-size: 1.125rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.5 !important; }
.text18800 { font-size: 1.125rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 1.5 !important; }
.text18900 { font-size: 1.125rem !important; font-style: normal !important; font-weight: 900 !important; line-height: 24px !important; }

/* 20px (1.25rem) */
.text20400 { font-size: 1.25rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.5 !important; }
.text20500 { font-size: 1.25rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.5 !important; }
.text20600 { font-size: 1.25rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.5 !important; }
.text20800 { font-size: 1.25rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 1.5 !important; }

/* 25px (1.5rem) */
.text25400 { font-size: 1.5rem !important; font-style: normal !important; font-weight: 400 !important; line-height: 1.5 !important; }
.text25500 { font-size: 1.5rem !important; font-style: normal !important; font-weight: 500 !important; line-height: 1.5 !important; }
.text25600 { font-size: 1.5rem !important; font-style: normal !important; font-weight: 600 !important; line-height: 1.5 !important; }
.text25800 { font-size: 1.5rem !important; font-style: normal !important; font-weight: 800 !important; line-height: 1.5 !important; }

/* ================================
   Responsive tweaks
   ================================ */
@media screen and (max-width: 576px) {
  .kt_attendee_card_body  { padding: 0 !important; }
  .kt_attendee_card_header{ padding: 10px 0 !important; }
  .kt_attendee_card_footer{ padding: 0 !important; }
  .kt_attendee_card_footer ul { margin-bottom: 0; }

  .kt_attende_email { display: none; }
  .kt_attende_pn    { display: none; }

  .kt_attende_st,
  .kt_attende_vd,
  .kt_attende_st input,
  .kt_attende_vd input,
  .kt_attende_td,
  .kt_attende_th {
    font-size: 0.712rem;
  }

  .kt_property_card  { margin: 1em !important; }
  .kt_property_header{ font-size: 0.712rem !important; padding: 0.5rem !important; }
  .kt_property_body  { padding: 0.5rem !important; }
  .kt_property_footer{ padding: 0.5rem !important; }

  .kt_buttons_column{
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
