/* =========================
   GREED SYSTEM GLOBAL STYLES
========================= */

.greed-form-card,
.greed-dashboard-card,
.greed-record-card {
    background: #1b1b1f;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    padding: 30px;
    width: auto;
    max-width: none;
    margin: 5px;
    color: #f1f1f1;
    box-shadow:
        0 0 20px rgba(0,0,0,0.45),
        0 0 5px rgba(255, 209, 102, 0.15);
    overflow: visible;
    box-sizing: border-box;
}

/* Headings */
.greed-form-card h2,
.greed-dashboard-card h2,
.greed-record-card h3 {
    color: #ffd166;
    margin-top: 0;
}

/* Inputs */
.greed-form-card input,
.greed-form-card textarea,
.greed-form-card select,
.greed-record-card textarea {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #555;
    background: #2a2a2a;
    color: #ffffff;
    margin-top: 5px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Tables */
.greed-form-card table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 20px;
}

.greed-form-card table th,
.greed-form-card table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.85rem;
    border: 1px solid #3a3a3a;
}

.greed-form-card table th {
    background: #2c2c31;
    color: #ffd166;
    padding: 10px;
    text-align: center;
}

.greed-form-card table td {
    background: #222227;
    padding: 10px;
    vertical-align: middle;
}

/* Buttons */
.greed-form-card button,
.greed-record-card button {
    background: #5b63d3;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 600;
    font-size: 0.8rem;
}

.greed-form-card button:hover,
.greed-record-card button:hover {
    background: #737af0;
    transform: translateY(-1px);
}

/* Status Badges */
.greed-status-needs,
.greed-status-welcomed {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    line-height: 1.2;
}

.greed-status-needs {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
}

.greed-status-welcomed {
    background: rgba(80, 200, 120, 0.15);
    color: #51cf66;
}

/* Messages */
.greed-success {
    background: #1b4332;
    color: #95d5b2;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.greed-error {
    background: #5c1d1d;
    color: #ffadad;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Dashboard Buttons */
.greed-dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.greed-dashboard-links a {
    background: #3949ab;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.greed-dashboard-links a:hover {
    background: #5c6bc0;
}

/* Mobile */
@media (max-width: 768px) {
    .greed-form-card,
    .greed-dashboard-card,
    .greed-record-card {
        padding: 15px;
        margin: 5px;
    }

    .greed-dashboard-links {
        flex-direction: column;
    }

    .greed-dashboard-links a {
        width: 100%;
        text-align: center;
    }

    .greed-form-card table th,
    .greed-form-card table td {
        font-size: 0.75rem;
        padding: 6px;
    }
}

/* Role-Based Navigation */
.greed-nav-card {
    background: #151518;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.greed-nav-card a {
    background: #2c2c31;
    color: #ffd166;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.greed-nav-card a:hover {
    background: #5b63d3;
    color: #ffffff;
}