:root {
    --ghd-primary: #0F5A63;
    --ghd-secondary: #2F6EA6;
    --ghd-text: #002B30;
    --ghd-bg: #F7FAFB;
    --ghd-sand: #E6DCCF;
    --ghd-seafoam: #7FCED6;

    --ghd-success: #2F7D6C;
    --ghd-info: #2C8E9B;
    --ghd-warning: #E8B351;
    --ghd-danger: #C84B4B;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--ghd-bg);
    color: var(--ghd-text);
}

a {
    color: var(--ghd-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ghd-container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.ghd-header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ghd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.ghd-logo {
    height: 60px;
    display: block;
}

.ghd-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ghd-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
}

.ghd-nav-link-primary {
    background-color: var(--ghd-primary);
    color: #ffffff;
}

/* Main & footer */

.ghd-main {
    padding: 24px 0 40px;
}

.ghd-footer {
    background-color: #ffffff;
    padding: 16px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.ghd-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    text-align: center;
}

.ghd-footer-link {
    color: var(--ghd-secondary);
}

/* Cards & sections */

.ghd-section {
    margin-bottom: 32px;
}

.ghd-section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--ghd-primary);
}

.ghd-section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ghd-section-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.ghd-hero-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
}

.ghd-hero-title {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--ghd-primary);
}

.ghd-hero-text {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.ghd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ghd-cards-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .ghd-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ghd-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.ghd-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
}

.ghd-card-title {
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--ghd-primary);
}

.ghd-card-text {
    font-size: 0.9rem;
    margin: 0;
}

/* Buttons */

.ghd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.ghd-btn-primary {
    background-color: var(--ghd-primary);
    color: #ffffff;
}

.ghd-btn-secondary {
    background-color: var(--ghd-secondary);
    color: #ffffff;
}

.ghd-btn-danger {
    background-color: var(--ghd-danger);
    color: #ffffff;
}

.ghd-btn:hover {
    filter: brightness(1.05);
}

.ghd-btn-success {
    background-color: #2F7D6C;
    color: #ffffff;
    border: none;
}

.ghd-btn-success:hover {
    background-color: #276a5c;
}

/* Forms */

.ghd-auth-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
}

.ghd-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ghd-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ghd-form-group label {
    font-size: 0.85rem;
    font-weight: 500;
}

.ghd-form-group input,
.ghd-form-group textarea,
.ghd-form-group select {
    border-radius: 10px;
    border: 1px solid var(--ghd-sand);
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: inherit;
}

.ghd-auth-meta {
    margin-top: 16px;
    font-size: 0.85rem;
}


/* Alerts */

.ghd-alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.ghd-alert-danger {
    background-color: rgba(200, 75, 75, 0.08);
    border: 1px solid rgba(200, 75, 75, 0.4);
    color: #7a1d1d;
}

/* Badges */

.ghd-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.ghd-badge-success {
    background-color: var(--ghd-success);
}

.ghd-badge-danger {
    background-color: var(--ghd-danger);
}

.ghd-badge-success-inline {
    background-color: var(--ghd-success);
    color: #ffffff;
    padding: 2px 20px;
    border-radius: 999px;
    font-size: 1rem;
}

.ghd-badge-danger-inline {
    background-color: var(--ghd-danger);
    color: #ffffff;
    padding: 2px 20px;
    border-radius: 999px;
    font-size: 1rem;
}

/* Dashboard */

.ghd-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ghd-inline-form {
    margin-top: 8px;
}

/* Dog public card */

.ghd-dog-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    max-width: 520px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
    text-align: center;
}

.ghd-dog-name {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--ghd-primary);
}

.ghd-dog-photo-wrapper {
    margin: 0 auto 16px;
    max-width: 280px;
}

.ghd-dog-photo {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.ghd-contact-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
}

.ghd-copy-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ghd-copy-text {
    cursor: default;
    word-break: break-all;
}

.ghd-copy-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}


/* Admin table */

.ghd-table-wrapper {
    overflow-x: auto;
}

.ghd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ghd-table th,
.ghd-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
}

.ghd-table th {
    background-color: rgba(230, 220, 207, 0.4);
}

.ghd-alert-success {
    background-color: rgba(47, 125, 108, 0.08); /* success */
    border: 1px solid rgba(47, 125, 108, 0.4);
    color: #215447;
}


/* Admin stats */

.ghd-admin-stats {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .ghd-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
	
.ghd-kpis-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.ghd-kpi-card {
    padding: 16px 20px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 90, 99, 0.1);
    border-radius: 12px;
    min-width: 220px;
}

.ghd-kpi-label {
    font-size: 0.9rem;
    color: #002B30;
    opacity: 0.8;
    margin-bottom: 4px;
}

.ghd-kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #C84B4B; /* danger */
}

.ghd-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .ghd-charts-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
	}
	
}
