﻿/* =========================================================
   Base / Layout
   ========================================================= */

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #4B0082, #800080, #9932CC);
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

main {
    flex-grow: 1;
    width: 100%;
    padding-bottom: 20px;
}

p {
    color: white;
    font-size: 10pt;
}

h2 {
    color: white;
    font-size: 15pt;
}

h4 {
    color: white;
    font-size: 11pt;
    margin: 15px 0 0 10px;
    font-weight: bold;
    text-align: left;
}

label {
    display: flex;
    margin-bottom: 0.5rem;
    color: white;
}

.alert-pre {
    word-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
}


/* =========================================================
   Header / Logo
   ========================================================= */

.navbar {
    margin-top: 24px;
    padding: 0;
}

a.navbar-brand {
    display: none;
}

div.navbar-collapse {
    padding-left: 50px;
}

.logo-container {
    background: white;
    margin-top:20px;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

img.logo {
    height: 44px;
    max-width: 180px;
    display: block;
    margin: 0 auto;
}

.user-info {
    width: 100%;
    margin-top: 10px;
    color: white;
    text-align: center;
    font-size: 14px;
    line-height: 1.25;
}


/* =========================================================
   Buttons / Home Menu
   ========================================================= */

.jumbotron,
.button-container {
    width: 80vw;
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jumbotron {
    background-color: transparent !important;
    padding: 0 2rem !important;
}

.btn,
.btn-primary {
    width: 100%;
    background-color: #e6005c;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease;
}

.btn {
    font-size: 18px;
    padding: 12px 20px;
}

.btn-primary {
    font-size: 16px;
    padding: 10px 15px;
    display: inline-block;
    margin-top: 10px;
}

    .btn:hover,
    .btn-primary:hover {
        background-color: #a3154e;
        color: white;
    }


/* =========================================================
   Forms
   ========================================================= */

.form-container {
    width: 80vw;
    max-width: 400px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-label {
    display: block;
    color: white;
    font-weight: bold;
    text-align: left;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #e6005c;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #e6005c;
}

    .input-field:focus {
        outline: none;
        border-color: #a3154e;
    }


/* =========================================================
   Alerts
   ========================================================= */

.alert-warning {
    color: darkmagenta !important;
    background-color: aliceblue !important;
    border-color: blueviolet !important;
    font-size: 10pt !important;
}


/* =========================================================
   Search Results / Referrals
   ========================================================= */

.results-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.result-item,
.referral-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease;
}

.result-item {
    padding: 15px;
    margin-bottom: 10px;
}

.referral-card {
    padding: 12px;
    text-align: left;
}

    .result-item:hover,
    .referral-card:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .result-item p,
    .referral-card p {
        color: white;
        margin: 5px 0;
    }

.result-item p {
    font-size: 14px;
}

.referral-card p {
    font-size: 12px;
}

.referral-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-referrals {
    color: #f5f5f5;
    font-style: italic;
}


/* =========================================================
   Clubs
   ========================================================= */

.club-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.club-card {
    width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.25s ease;
}

    .club-card:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .club-card h3,
    .club-card p {
        color: white;
    }


/* =========================================================
   Register / Attendance
   ========================================================= */

.register-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

    .register-container form {
        max-width: 300px;
        margin: auto;
    }

.register-header {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.register-details {
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    color: #333;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .checkbox-container input {
        margin-left: 10px;
    }

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 4px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .checkbox-label input[type="checkbox"] {
        transform: scale(1.5);
        margin-right: 10px;
    }

        .checkbox-label input[type="checkbox"]:checked + span {
            color: #28a745;
        }

    .checkbox-label:has(input[type="checkbox"]:checked) {
        background: rgba(0, 255, 0, 0.4);
    }

.submit-button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .submit-button:hover {
        background: #0056b3;
    }


/* =========================================================
   Loading Buttons
   ========================================================= */

button.loading,
a.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}

button .spinner,
a .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   My Actions Today
   ========================================================= */

.actions-page-compact {
    width: min(430px, 96vw);
    margin: 0.9rem auto 1.5rem;
}

.compact-actions-list {
    display: grid;
    gap: 0.75rem;
}

.compact-action-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 0.75rem;
    align-items: start;
    min-height: 112px;
    padding: 0.8rem 0.75rem 0.8rem 0.8rem;
    color: white;
    text-decoration: none;
    text-align: left;
    background: rgba(18, 10, 28, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(7px);
    overflow: hidden;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

    .compact-action-card:hover,
    .compact-action-card:focus {
        color: white;
        text-decoration: none;
        transform: translateY(-2px);
        background: rgba(18, 10, 28, 0.78);
        border-color: rgba(255, 255, 255, 0.32);
    }

.compact-project-strip {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #e6007e;
}

.compact-avatar {
    width: 48px;
    height: 48px;
    margin: 0.1rem 0 0 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #4B0082;
    border-radius: 3px;
    font-size: 1.65rem;
    line-height: 1;
}

.compact-action-main {
    min-width: 0;
}

.compact-action-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: start;
}

.compact-client-name {
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.08;
    letter-spacing: 0.01em;
    overflow-wrap: anywhere;
}

.compact-action-time {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.95;
}

.compact-dob {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    opacity: 0.86;
}

.compact-address {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.2;
    opacity: 0.92;
}

.compact-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.22;
    opacity: 0.95;
}

.compact-empty-card {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    color: white;
    text-align: left;
    background: rgba(18, 10, 28, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(7px);
}

    .compact-empty-card strong {
        display: block;
        font-size: 1.1rem;
    }

    .compact-empty-card span {
        display: block;
        opacity: 0.85;
    }

.compact-empty-tick {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #4B0082;
    font-size: 1.5rem;
    font-weight: 900;
}


/* =========================================================
   Project Strip Colours
   ========================================================= */

.project-19 .compact-project-strip {
    background: #00a3ff;
}

.project-24 .compact-project-strip {
    background: #2bd17e;
}

.project-25 .compact-project-strip {
    background: #ffb000;
}

.project-37 .compact-project-strip {
    background: #ff4f81;
}

.project-40 .compact-project-strip {
    background: #9d7cff;
}

.project-85000086 .compact-project-strip {
    background: #e6007e;
}

.project-85000077 .compact-project-strip {
    background: #00d4c7;
}

.project-85000088 .compact-project-strip {
    background: #ff7043;
}
/* =========================================================
   Carer Search
   ========================================================= */

.carer-search-page {
    width: min(430px, 96vw);
    margin: 0.9rem auto 1.5rem;
}

.carer-search-form {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.carer-search-input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(18, 10, 28, 0.58);
    color: white;
    font-size: 1rem;
    outline: none;
}

    .carer-search-input::placeholder {
        color: rgba(255, 255, 255, 0.72);
    }

    .carer-search-input:focus {
        border-color: rgba(255, 255, 255, 0.6);
        background: rgba(18, 10, 28, 0.72);
    }

.carer-results-list {
    margin-top: 0.9rem;
}

.search-message-card {
    margin-top: 0.9rem;
}