/* E-MOTION Intranet — dark theme with teal accent */

:root {
    --tile-accent: #0dcaf0;
}

body {
    background: #121418;
    min-height: 100vh;
}

/* ---- Tile grid — dynamic, no fixed columns ---- */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---- Tile card ---- */
.tile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    background: #1a1e24;
    border: 1px solid #2a2e35;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tile-card:hover {
    transform: translateY(-4px);
    border-color: var(--tile-accent);
    box-shadow: 0 8px 30px rgba(13, 202, 240, 0.1);
    color: inherit;
    text-decoration: none;
}

.tile-icon {
    font-size: 3.5rem;
    color: var(--tile-accent);
    margin-bottom: 1rem;
    line-height: 1;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tile-img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
}

.tile-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

.tile-desc {
    font-size: 0.9rem;
    color: #8a8f98;
    margin: 0;
    line-height: 1.4;
}

/* ---- Icon picker in admin ---- */
.icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0;
}

/* ---- Color swatches ---- */
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.15s, transform 0.1s;
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* ---- Admin table tweaks ---- */
.handle {
    font-size: 1.1rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .tiles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .tile-card {
        padding: 1.5rem 1rem;
    }
    .tile-icon {
        font-size: 2.5rem;
    }
    .tile-title {
        font-size: 1.2rem;
    }
}
