/* =========================================================
   Golf Event Engine – SHARED GLOBAL UI
   Purpose:
   - Used by ALL formats (Stableford, Scramble, etc.)
   - Buttons, forms, help text, banners, share box, tables, messages
   Source: migrated from old gee-components.css
   ========================================================= */

/* =========================
   Buttons
   ========================= */

.gee-btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.gee-btn:hover { background: #1d4ed8; }
.gee-btn:active { transform: translateY(1px); }

.gee-btn-primary {
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.gee-btn-secondary { background: #374151; }
.gee-btn-secondary:hover { background: #1f2937; }

.gee-btn-danger {
    background: #dc2626;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.gee-btn-danger:hover { background: #b91c1c; }

/* Share buttons */
.gee-btn-copy,
.gee-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}
.gee-btn-copy { background: #2563eb; color: #fff; }
.gee-btn-copy:hover { background: #1d4ed8; }

.gee-btn-whatsapp { background: #25D366; color: #fff; }
.gee-btn-whatsapp:hover { background: #1ebe5d; }

/* =========================
   Admin banner
   ========================= */
.gee-admin-banner {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    color: #664d03;
    font-weight: 700;
}

/* =========================
   Forms (base)
   ========================= */
.gee-form { margin-top: 16px; }
.gee-form * { box-sizing: border-box; }

.gee-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.gee-form input,
.gee-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 10px;
    border: 1px solid #9ca3af;
    background: #ffffff;
    color: #111827;
}

.gee-form input:focus,
.gee-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gee-help-text {
    margin: 6px 0 14px;
    font-size: 1.25rem;
    color: #6b7280;
}

.gee-intro-text {
    margin: 6px 0 14px;
    font-size: .75rem;
    color: #6b7280;
}

.gee-locked-text {
    margin: 6px 0 14px;
    font-size: 1.00rem;
    color: #6b7280;
}

/* Create / Edit Event card */
.gee-form-card {
    background: #ffffff;
    padding: 20px;
    margin-top: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Player list */
.gee-player-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}
.gee-player-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}
.gee-player-name { font-weight: 600; }
.gee-player-hcp { margin-left: 6px; font-size: 0.9rem; color: #6b7280; }
.gee-player-no-hcp { color: #9ca3af; font-style: italic; }

/* Share box */
.gee-share-box {
    margin: 16px 0;
    padding: 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #9ca3af;
}
.gee-share-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #9ca3af;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

/* Admin hole table */
.gee-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.gee-admin-table th,
.gee-admin-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}
.gee-admin-table th {
    font-weight: 600;
    color: #374151;
}
.gee-admin-table td:first-child { font-weight: 600; }

.gee-admin-table input[type="number"] {
    width: 70px;
    max-width: 100%;
    padding: 8px 6px;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

/* Field validation */
.gee-input-error {
    border: 2px solid #dc2626;
    background-color: #fee2e2;
}
.gee-input-error-msg {
    font-size: 12px;
    color: #dc2626;
    margin-top: 2px;
}

/* Messages */
.gee-error {
    background: #fee2e2;
    border-left: 5px solid #dc2626;
    color: #7f1d1d;
    padding: 14px 16px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
}


/* SAFETY: never allow the app to be hidden */
body.gee-restoring-scroll {
  visibility: visible !important;
}

.gee-app-shell,
.gee-wrap,
.gee-app {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}
