@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

body {
    background-color: #f9f9f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    color: #1a1a1a;
}

/* App container to simulate a mobile app view on desktop */
.app-container {
    width: 100%;
    max-width: 412px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f6;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

/* Header/Logo styling (Login Page) */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 32px;
    text-align: center;
    padding: 0 24px;
}

.logo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #ffeb3b);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

.logo-wrapper svg {
    width: 42px;
    height: 42px;
    fill: #ffffff;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #0c1911;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Login Card styling */
.login-card {
    background-color: #ffffff;
    border-radius: 28px;
    padding: 32px 24px;
    border: 1px solid #f0f0eb;
    margin: 0 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #008744;
    box-shadow: 0 0 0 3px rgba(0, 135, 68, 0.1);
}

/* Highlight email input border as in the first image */
.form-control.highlight-border {
    border-color: #008744;
}

.form-control.bg-light-gray {
    background-color: #fcfcfc;
}

/* Button styling */
.btn-submit {
    width: 100%;
    height: 52px;
    background-color: #008744;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 135, 68, 0.2);
}

.btn-submit:hover {
    background-color: #007038;
    box-shadow: 0 10px 20px rgba(0, 135, 68, 0.3);
    transform: translateY(-1px);
}

.btn-submit svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Helper text styling */
.helper-text {
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    font-weight: 400;
}

.helper-text strong {
    font-weight: 500;
}


/* ==========================================================================
   Dashboard (painel.php) Styles
   ========================================================================== */

/* Top Header Bar */
.dashboard-header {
    background: linear-gradient(135deg, #388e3c, #afb42b);
    padding: 30px 24px 30px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo-box svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.header-text-container {
    display: flex;
    flex-direction: column;
}

.header-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.btn-logout {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-logout svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Nav Submenu Section */
.nav-submenu {
    background-color: #f0f4ee;
    border-radius: 20px;
    display: flex;
    padding: 6px;
    margin: 20px 24px;
    justify-content: space-between;
}

.nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #4e6551;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-item.active {
    background-color: #008744;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 135, 68, 0.15);
}

.nav-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Dashboard Body Scroll area */
.dashboard-content {
    flex: 1;
    padding: 0 24px 40px 24px; /* Adjust padding for dynamic scroll content */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stats 2x2 Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background-color: #f7f9f5;
    border: 1px solid #eef2eb;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 104px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

/* Set background for Card 1 & Card 3 */
.stat-card.bg-light-yellow {
    background-color: #fcfbf2;
    border-color: #f6f3df;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #556b5a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-card-header svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.stat-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #0c1911;
    margin-top: 8px;
}

.stat-card-value.highlight-green {
    color: #008744;
}

/* Config Card Box */
.config-card {
    background-color: #ffffff;
    border: 1px solid #edf1ea;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.config-title {
    font-size: 18px;
    font-weight: 700;
    color: #0c1911;
    margin-bottom: 4px;
}

.config-subtitle {
    font-size: 14px;
    color: #556b5a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.config-group {
    margin-bottom: 18px;
}

.config-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Quantity selector component */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-qty {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #f0f4ee;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #388e3c;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.btn-qty:hover {
    background-color: #e5ebe2;
}

.qty-input {
    flex: 1;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    outline: none;
}

/* Bottom summary drawer */
.summary-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #388e3c, #afb42b);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 -10px 30px rgba(56, 142, 60, 0.25);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.summary-top-row {
    display: flex;
    justify-content: space-between;
}

.summary-col {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 100%;
}

.summary-bottom-row {
    display: flex;
    flex-direction: column;
}

.prize-per-winner {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.prize-per-winner span {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}


/* ==========================================================================
   Members (membros.php) Styles
   ========================================================================== */

.section-heading-title {
    font-size: 20px;
    font-weight: 700;
    color: #0c1911;
    margin-top: 10px;
    margin-bottom: 14px;
}

.btn-add-bet {
    width: 100%;
    height: 48px;
    background-color: #008744;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 135, 68, 0.15);
}

.btn-add-bet:hover {
    background-color: #007038;
}

/* Empty State Styling */
.empty-state-box {
    background-color: #ffffff;
    border: 1px solid #edf1ea;
    border-radius: 24px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.empty-icon-circle {
    width: 64px;
    height: 64px;
    background-color: #f7f9f2;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.empty-icon-circle svg {
    width: 32px;
    height: 32px;
    fill: #388e3c;
}

.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #0c1911;
    margin-bottom: 4px;
}

.empty-subtitle {
    font-size: 13px;
    color: #556b5a;
    line-height: 1.4;
}

/* Member List Item styling */
.member-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-card-item {
    background-color: #ffffff;
    border: 1px solid #edf1ea;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.member-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #0c1911;
}

.member-item-guess {
    font-size: 12px;
    color: #556b5a;
    background-color: #f0f4ee;
    padding: 2px 8px;
    border-radius: 8px;
    width: fit-content;
    font-weight: 500;
}

.member-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-item-value {
    font-size: 15px;
    font-weight: 700;
    color: #008744;
}

.btn-remove-member {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-remove-member:hover {
    background-color: #fee2e2;
}

.btn-remove-member svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
