/*
 * Shared color theme for the web console, matching the Android app's
 * Material palette (android/app/src/main/res/values/colors.xml) so both
 * platforms look like the same product. Variable names mirror the Android
 * color resource names for a self-documenting mapping.
 */
:root {
    --primary: #009633;        /* purple_500 */
    --primary-dark: #007A29;   /* purple_700 */
    --primary-light: #80CFA0;  /* purple_200 */
    --secondary: #006622;      /* teal_700 */
    --secondary-light: #66C58A;/* teal_200 */

    --surface-card: #FAFAFA;
    --bg: #F0F0F0;             /* light_gray */
    --text-gray: #999999;
    --black: #000000;
    --white: #FFFFFFFF;

    --tile-all: #6C757D;
    --tile-pending: #FFC107;
    --tile-approved: #28A745;
    --tile-rejected: #DC3545;
    --tile-transfer: #17A2B8;
    --tile-info: #3F51B5;
}

body {
    background-color: var(--bg);
}

/* Shared card shape used across every panel/stat-card/tile on every page. */
.card-surface {
    background: var(--surface-card);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

/*
 * Icon-topped quick-action tile, matching the Android app's home-screen
 * cards (MaterialCardView: rounded corners, soft elevation, thin light
 * stroke, centered icon + bold label) so the web quick-links row and the
 * mobile tile grid read as the same component.
 */
.quick-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
}

.quick-tile {
    background: var(--surface-card);
    border-radius: 12px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    padding: 18px 12px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}

.quick-tile:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.quick-tile i {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.quick-tile span {
    font-size: 13px;
    font-weight: 600;
    color: #2d2c2c;
    line-height: 1.3;
}

/* Primary action buttons/links - the app's main brand color. */
.btn-theme-primary,
.btn-back {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-theme-primary:hover,
.btn-back:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Status badges - use the exact same colors as the Android tile_* resources. */
.status-badge,
.search-result-status,
.submission-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending,
.search-result-status.pending {
    background-color: #FFF3CD;
    color: #7A5B00;
}

.status-approved,
.search-result-status.approved {
    background-color: #D9F2E1;
    color: var(--secondary);
}

.status-rejected,
.search-result-status.rejected {
    background-color: #FBDCE0;
    color: var(--tile-rejected);
}
