/* ============================================================
   Kaua'i Venues
   Dark theme based on VENUES logo
   ============================================================ */

:root {
    --bg:          #06131c;
    --bg-deep:     #020a10;
    --panel:       #0b2638;
    --panel-light: #10364d;
    --navy:        #082b46;

    --gold:        #f4bd4c;
    --gold-light:  #ffe29a;
    --gold-dark:   #b97918;

    --text:        #f7edd4;
    --text-muted:  #b9c6cc;

    --border:      #315164;
    --danger:      #d86b62;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(
            180deg,
            #071c29 0,
            var(--bg) 260px,
            var(--bg-deep) 100%
        );
    color: var(--text);
    min-height: 100vh;
}


/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
    display: flex;
    align-items: center;
    gap: 34px;

    padding: 12px 28px;

    background: rgba(2, 10, 16, 0.94);
    border-bottom: 2px solid var(--gold-dark);

    color: var(--text);
}

.site-header > strong {
    font-size: 19px;
}

.site-header a {
    color: var(--text);
    text-decoration: none;
}

.site-header a:hover {
    color: var(--gold);
}

.site-header nav {
    display: flex;
    gap: 24px;
}

.site-header nav a {
    padding: 8px 2px;
}

.site-header .user {
    margin-left: auto;
    color: var(--gold-light);
}


/* ------------------------------------------------------------
   Main content
   ------------------------------------------------------------ */

.container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    color: var(--text);
}

h1 {
    margin-top: 0;
    color: var(--gold-light);
}

a {
    color: var(--gold);
}

a:hover {
    color: var(--gold-light);
}


/* ------------------------------------------------------------
   Dashboard statistics
   ------------------------------------------------------------ */

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.stats > div {
    min-width: 190px;
    padding: 22px 24px;

    background:
        linear-gradient(
            145deg,
            var(--panel-light),
            var(--panel)
        );

    border: 1px solid var(--border);
    border-top: 3px solid var(--gold-dark);
    border-radius: 5px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.30);
}

.stats strong {
    display: inline-block;
    margin-bottom: 4px;

    font-size: 32px;
    color: var(--gold);
}


/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    padding: 9px 10px;

    background: #071923;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 3px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

button {
    padding: 8px 14px;

    background: var(--gold-dark);
    color: #fff;

    border: 1px solid var(--gold);
    border-radius: 3px;

    cursor: pointer;
}

button:hover {
    background: var(--gold);
    color: #07131b;
}

.inline-form {
    display: inline;
    margin-left: 12px;
}


/* ------------------------------------------------------------
   Tables -- ready for venue list
   ------------------------------------------------------------ */

table {
    width: 100%;
    border-collapse: collapse;

    background: var(--panel);
    border: 1px solid var(--border);
}

th {
    padding: 11px 12px;

    text-align: left;

    background: var(--navy);
    color: var(--gold-light);

    border-bottom: 2px solid var(--gold-dark);
}

td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: var(--panel-light);
}


/* ------------------------------------------------------------
   Messages
   ------------------------------------------------------------ */

.error {
    padding: 12px;

    background: #421d1d;
    color: #ffd4cf;

    border: 1px solid var(--danger);
    border-radius: 3px;
}


/* ------------------------------------------------------------
   Small screens
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .site-header {
        flex-wrap: wrap;
        gap: 12px 22px;
    }

    .site-header .user {
        margin-left: 0;
    }

    .stats {
        display: block;
    }

    .stats > div,
    .stats > a {
        margin-bottom: 14px;
    }
}




.site-brand {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.site-logo {
    display: block;
    width: 20%;
    max-width: 150px;
    min-width: 100px;
    flex: 0 0 20%;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-tagline {
    color: var(--gold-light);
    font-size: 19px;
    font-weight: normal;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.site-tagline span {
    color: var(--gold);
    font-weight: bold;
    font-style: italic;
    text-shadow:
        0 0 6px rgba(244, 189, 76, 0.35),
        0 0 14px rgba(244, 189, 76, 0.18);
}

/* ------------------------------------------------------------
   Page headings
   ------------------------------------------------------------ */

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin-bottom: 4px;
}

.page-intro {
    margin: 0;
    color: var(--text-muted);
}


/* ------------------------------------------------------------
   Button links
   ------------------------------------------------------------ */

.button-link {
    display: inline-block;
    padding: 9px 15px;

    background: var(--gold-dark);
    color: #fff;

    border: 1px solid var(--gold);
    border-radius: 3px;

    text-decoration: none;
}

.button-link:hover {
    background: var(--gold);
    color: #07131b;
}


/* ------------------------------------------------------------
   Venue list
   ------------------------------------------------------------ */

.table-wrap {
    width: 100%;
    overflow-x: auto;

    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.30);
}

.venue-table {
    min-width: 850px;
}

.venue-table .venue-name > a {
    color: var(--gold-light);
    font-weight: bold;
    font-size: 17px;
    text-decoration: none;
}

.venue-table .venue-name > a:hover {
    color: var(--gold);
}

.secondary {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}


/* ------------------------------------------------------------
   Status badges
   ------------------------------------------------------------ */

.status {
    display: inline-block;
    padding: 4px 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #071923;

    font-size: 13px;
    white-space: nowrap;
}

.status-prospect {
    color: #b9c6cc;
}

.status-contacted,
.status-responded {
    color: #8fd3ff;
}

.status-negotiating,
.status-hold {
    color: var(--gold-light);
    border-color: var(--gold-dark);
}

.status-booked {
    color: #9ee6a8;
    border-color: #477c51;
}

.status-played {
    color: var(--gold);
    border-color: var(--gold-dark);
}

.status-declined {
    color: #e99b94;
}

.status-inactive {
    color: #888;
}


/* ------------------------------------------------------------
   Venue detail
   ------------------------------------------------------------ */

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}

.panel {
    padding: 22px 24px;

    background:
        linear-gradient(
            145deg,
            var(--panel-light),
            var(--panel)
        );

    border: 1px solid var(--border);
    border-top: 3px solid var(--gold-dark);
    border-radius: 5px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.30);
}

.panel h2 {
    margin-top: 0;
    color: var(--gold-light);
}

.info-block {
    margin: 0 0 18px 0;
}

.info-block > strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.venue-notes {
    margin-top: 24px;
}


/* ------------------------------------------------------------
   Contacts
   ------------------------------------------------------------ */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin-bottom: 16px;
}

.small-link {
    font-size: 14px;
}

.contact-card {
    position: relative;
    padding: 14px 75px 14px 0;
    border-top: 1px solid var(--border);
}

.contact-card:first-of-type {
    border-top: 0;
}

.contact-name {
    color: var(--gold-light);
    font-size: 17px;
    font-weight: bold;
}

.primary-label {
    display: inline-block;

    margin-left: 7px;
    padding: 2px 6px;

    border: 1px solid var(--gold-dark);
    border-radius: 10px;

    color: var(--gold);
    font-size: 11px;
    font-weight: normal;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 13px;
}


/* ------------------------------------------------------------
   Activity timeline
   ------------------------------------------------------------ */

.activity-panel {
    margin-bottom: 30px;
}

.activity-list {
    margin-top: 4px;
}

.activity-item {
    padding: 18px 0;

    border-top: 1px solid var(--border);
}

.activity-item:first-child {
    border-top: 0;
}

.activity-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 8px;

    color: var(--text-muted);
    font-size: 13px;
}

.activity-type {
    padding: 3px 8px;

    background: #071923;

    border: 1px solid var(--gold-dark);
    border-radius: 10px;

    color: var(--gold);
    font-weight: bold;
}

.activity-note {
    font-size: 16px;
    line-height: 1.45;
}

.activity-detail {
    margin-top: 8px;

    color: var(--text-muted);
    font-size: 13px;
}

.activity-followup {
    margin-top: 8px;

    color: var(--gold-light);
    font-size: 13px;
    font-weight: bold;
}


@media (max-width: 750px) {

    .venue-layout {
        grid-template-columns: 1fr;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */

.form-panel {
    max-width: 720px;
}

.form-row {
    margin-bottom: 22px;
}

.form-row > label {
    display: block;
    margin-bottom: 7px;

    color: var(--gold-light);
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row input[type="datetime-local"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
    width: 100%;
}

.form-row textarea {
    resize: vertical;
    line-height: 1.4;
}

.form-help {
    margin-top: 6px;

    color: var(--text-muted);
    font-size: 13px;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input {
    width: auto;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 28px;
}

.cancel-link {
    color: var(--text-muted);
}



.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-location {
    grid-template-columns: 2fr 0.7fr 1fr;
}

.form-section-title {
    margin: 32px 0 18px;

    padding-bottom: 7px;

    border-bottom: 1px solid var(--border);

    color: var(--gold);
    font-size: 18px;
}


@media (max-width: 650px) {

    .form-grid,
    .form-grid-location {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.small-button {
    display: inline-block;
    padding: 5px 10px;

    background: var(--gold-dark);
    border: 1px solid var(--gold);
    border-radius: 4px;

    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;

    cursor: pointer;
}

.small-button:hover {
    background: var(--gold);
    color: var(--bg-deep);
    text-decoration: none;
}

.contact-card .contact-edit {
    position: absolute;
    top: 18px;
    right: 0;
}

/* ------------------------------------------------------------
   Contact Detail View
   ------------------------------------------------------------ */

.page-subtitle {
    margin-top: 2px;
    color: #b8d4e6;
    font-size: 1rem;
}

.contact-info-card,
.contact-notes-card {
    margin-bottom: 24px;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr .7fr .6fr .6fr;
    gap: 20px;
    align-items: start;
}

.detail-field {
    margin: 0;
}

.detail-label {
    margin-bottom: 4px;
    color: #a9c9df;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-notes {
    line-height: 1.5;
    white-space: normal;
}

.muted {
    color: #a9c9df;
}


@media (max-width: 1000px) {

    .contact-fields {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 20px;
    }
}


@media (max-width: 650px) {

    .contact-fields {
        grid-template-columns: 1fr;
    }

    .page-actions {
        margin-top: 12px;
    }
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.contact-header h1 {
    margin-bottom: 2px;
}

/* ------------------------------------------------------------
   Clickable Dashboard Stats
   ------------------------------------------------------------ */

.stats > a.stat-link {
    display: block;
    padding: 24px 26px;
    background: #10364b;
    border: 1px solid #2c5b73;
    border-top: 3px solid #c17d08;
    border-radius: 5px;

    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.stats > a.stat-link strong {
    display: inline-block;
    margin-bottom: 5px;

    color: #ffbd24;
    font-size: 2.4rem;
    font-weight: 500;
}

.stats > a.stat-link:hover {
    background: #16445c;
    border-color: #d69216;
    border-top-color: #ffbd24;
}

.stats > a.stat-link:focus {
    outline: 2px solid #ffbd24;
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   Follow-up List
   ------------------------------------------------------------ */

.followup-list {
    margin-top: 20px;
}

.followup-item {
    padding: 16px 0 18px 0;
    border-bottom: 1px solid #315263;
}

.followup-item:first-child {
    padding-top: 0;
}

.followup-date {
    margin-bottom: 4px;
    color: #a9c9df;
    font-size: 0.9rem;
    font-weight: 600;
}

.followup-main strong {
    display: block;
    margin-bottom: 2px;
}

.followup-note {
    margin-top: 8px;
    line-height: 1.4;
}

.followup-type {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;

    border: 1px solid #c17d08;
    border-radius: 12px;

    color: #ffd36a;
    font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Venue Print View
   ------------------------------------------------------------ */

@media print {

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    header,
    nav,
    .print-button,
    .small-button,
    .contact-edit,
    .page-actions {
        display: none !important;
    }

    main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    h1,
    h2,
    h3 {
        color: #000 !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .card {
        background: none !important;
        color: #000 !important;
        border: 0 !important;
        border-top: 1px solid #888 !important;
        border-radius: 0 !important;
        box-shadow: none !important;

        padding: 12px 0 !important;
        margin: 12px 0 !important;

        break-inside: avoid;
    }

    .detail-label,
    .activity-meta {
        color: #444 !important;
    }

    .primary-label {
        color: #000 !important;
        border-color: #777 !important;
    }

    .activity-item {
        break-inside: avoid;
    }

    .print-only {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        color: #555;
        font-size: 9pt;
        text-align: right;
    }
}

.print-only {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}