@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --accent: #3b82f6;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 550px;
    background: var(--card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

input, textarea {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Multi-Select Tile Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 16px;
    border: 2px solid var(--border);
}

.portal-tile {
    position: relative;
}

.portal-tile input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tile-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    color: var(--text-muted);
}

.portal-tile input:checked + .tile-label {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.portal-tile:hover .tile-label {
    border-color: var(--accent);
    background: #fff;
}

.btn {
    width: 100%;
    padding: 16px;
    background: var(--text);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Admin Dashboard Bright Mode */
.admin-container {
    max-width: 1200px;
    padding: 40px;
}

.table-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    padding: 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 18px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

tr:last-child td {
    border-bottom: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.page-link.active, .page-link:hover {
    background: var(--text);
    border-color: var(--text);
    color: white;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
        border-radius: 0;
    }
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
