:root {
    --navy: #013576;
    --gold: #e3bb4b;
    --teal: #1fc28c;
    --bad: #ff6b6b;

    --bg: #F8F9FB;
    --text: #111;
    --muted: #666;
    --surface: #ffffff;

    --text: #111111;
    --muted: #666666;

    --border: #e8e8e8;

    --radius-md: 12px;

    --shadow-focus: 0 0 0 3px rgba(1, 53, 118, 0.15);
}

button {
    outline: none;
    border:none;
     -webkit-tap-highlight-color: transparent;
}
button::focus-visible {
    outline: var(--teal);
    outline-offset: 3px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: white;
    color: var(--text);
    line-height: 1.5;
}

input,
select:not(.sidebar-workspace-select),
textarea {
    flex:1;
    height:40px;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    background:var(--surface);
    font-size:14px;
    color:#1f2937;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    font-family:inherit;
}

/* Hover */
input:hover,
select:hover,
textarea:hover {
    border-color:rgba(0,0,0,0.25);
}

/* Focus */

input:focus,
select:focus,
textarea:focus {
    outline:none;
    border-color:var(--teal);
    box-shadow:var(--shadow-focus);
}

select:not(.sidebar-workspace-select) {
    height:40px;
    max-width:160px;
    min-width:120px;
    padding:10px 35px 10px 12px;
    border:1px solid var(--border);
    border-radius:var(--radius-md);
    background:#fff;
    font-size:14px;
    color:#1f2937;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.5 7.5L10 12l4.5-4.5z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

label:not(.uploadDocument, .btn-primary-2)  {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--teal);
    margin-top: 12px;
    margin-bottom: 6px;
}


/* Owners Corporations */
.owners {
    background: #EEF2FF;
    color: #4F46E5;
}

/* Properties */
.properties {
    background: #ECFEFF;
    color: #0F766E;
}

/* Maintenance */
.maintenance {
    background: #FEF3C7;
    color: #B45309;
}

/* Meetings */
.meetings {
    background: #F3E8FF;
    color: #7C3AED;
}

/* Financials */
.financials {
    background: #ECFDF5;
    color: #059669;
}

/* Arrears */
.arrears {
    background: #FFF1F2;
    color: #E11D48;
}

.colour-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    flex-shrink:0;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}

/* HEADER */
.header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.brand {
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
}

.brand img {
    width: 55px;
    height: 55px;
}

.brand span {
    color: white;
    font-size: 35px;/* MOBILE */
    font-weight:bold;
    padding-left:10px;
    white-space: nowrap;
    
}

/* BUTTONS */

.btn-primary {
    background: var(--teal);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--gold);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-third {
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--navy);
    text-decoration: none;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary-2 {
    background: var(--teal);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary-2:hover {
     opacity: 0.8;
}


.btn-secondary-2 {
    background: var(--gold);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary-2:hover {
      opacity: 0.8;
}

.btn-third-2 {
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--navy);
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-third-2:hover {
   opacity: 0.8;
}

.btn-light {
    background: white;
    color: var(--navy);
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: inherit;
    line-height: normal;
    font-size: 15px;
}

.text-btn{

    border:none;
    background:none;
    color:white;
    font-weight:600;
    cursor:pointer;

}

.form-actions .btn-primary-2,
.form-actions .btn-secondary-2,
.form-actions .btn-third-2{
  flex:1;
}

.panel{
    position: relative;
    overflow: hidden;
    background:white;
    border-radius: 10px;
    margin-top:20px;
}

.panelNoMargin{
    position: relative;
    overflow: hidden;
    background:white;
    border-radius: 10px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color:white;
    background: var(--navy);
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content:space-between;
    align-items:center;
}

.panel-nogrid-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color:white;
    background: var(--navy);
    padding: 10px 20px;
    justify-content:space-between;
    align-items:center;
}

.panel::before,
.panelNoMargin:before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--navy), var(--teal));
}

.property-panel .panel-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}


.panel-content{
    padding: 0px 20px 20px 20px;
}

.panel-title-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.panel-title-search{
    flex:1;
}


.section-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 12px; 
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--teal);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.section-title:hover {
    background: rgba(31,194,140,0.06);
}

.section-title.active {
    color: var(--navy);
}

/* ARROW */
.arrow {
    transition: transform 0.25s ease;
    font-size: 16px;
}

.section-title.active .arrow {
    transform: rotate(90deg);
}

/* COLLAPSIBLE CONTENT */
.section-content {
    display: none;
    margin-top: 4px;
    margin-left: 6px;
}

.section-content.open {
    display: block;
}

.item {
    width: 100%;

    background: transparent;
    border: none;

    text-align: left;

    padding: 11px 14px;
    border-radius: 10px;

    font-size: 14px;
    color: var(--muted);

    cursor: pointer;

    transition: all 0.2s ease;
}

.item:hover {
    background: rgba(1,53,118,0.06);
    color: var(--navy);
}

.item.active {
    background: rgba(31,194,140,0.12);
    color: var(--navy);
    font-weight: 600;
    border-left: 3px solid var(--teal);
}

.side-footer {
    margin-top: auto;

    border-top: 1px solid rgba(0,0,0,0.06);

    padding: 20px 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    text-align: center;

    background: white;
}

.user {
    font-size: 12px;
    color: var(--muted);
}

.logout {
    width: 180px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--gold);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227,187,75,0.25);
}


/* Table Rows */

.item-row{

    padding: 12px 0px;
    border-bottom: 1px solid var(--border-light);
}

.item-row:last-child{
    border-bottom:none;
}

.item-row:hover{
    background:#fafafa;
}

/* =====================================================
   HEADER
===================================================== */

.page-header{
display:flex;
justify-content:space-between;
align-items:center;
}

.page-header-left h1{
font-size:32px;
font-weight:700;
color:var(--navy);
}

.page-header-left p{
font-size:15px;
color:#6b7280;
max-width:620px;
}

.page-header-right{
display:flex;
align-items:center;
}


/*--------------- Cupboard -----------*/

.cupboard-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    opacity:0;
    visibility:hidden;
    transition:.25s;
    z-index:999999;

}

.cupboard{
    position:fixed;
    top:0;
    right:0;
    width:520px;
    max-width:100%;
    height:100vh;
    background:#fff;
    display:flex;
    flex-direction:column;
    box-shadow:-8px 0 24px rgba(0,0,0,.15);
    transform:translateX(100%);
    transition:.3s ease;
    z-index:9999;

}
.cupboard.open{
    transform:translateX(0);
}

.cupboard-overlay.open{
    opacity:1;
    visibility:visible;
}

.cupboard-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding:24px;
    background:var(--navy);
    border-bottom:1px solid #ececec;
}

.cupboard-body{
    flex:1;
    overflow-y:auto;
    padding:24px;
}

.cupboard-footer{
    padding:20px 24px;
    border-top:1px solid #ececec;
    background:#fff;
}

.cupboard.small {
    width: 420px;
}

.cupboard.medium {
    width: 520px;
}

.cupboard.large {
    width: 720px;
}

.cupboard.xlarge {
    width: 960px;
}
.cupboardActions{
    display:flex;
    align-items:center;
    display:none;
    justify-content:space-between;
}

.cupboardActions.open{
    display:flex;
}

.cupboard-section{
    margin-top:20px;
}


/* MOBILE */

@media (max-width: 768px) {

    /* General */

    .container {
        padding: 0 20px;
    }

    section {
        overflow-x: hidden;
    }

    /* Header */

    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    .brand span {
         visibility: hidden;
    }

}

@media (max-width: 480px) {

    .brand span {
        visibility: hidden;
    }
}