/* ========================================================================== */
/* ADMIN --> DEVICES                                                          */
/* ========================================================================== */

.devices-wrapper {
    padding: 60px 70px;
    margin-left: var(--sidenav-width);
    margin-top: var(--topnav-height);
    margin-bottom: 300px;
}

@media (max-width: 991.98px) {
    .devices-wrapper {
        padding: 24px var(--page-gutter);
    }
}

/* section 1 : HEADER */

.devices-header {
    margin-bottom: 45px;
}

    .devices-header h1 {
        font-size: 2.6rem;
        font-weight: 650;
        color: #032f4f;
    }

.devices-sub {
    margin-top: 6px;
    font-size: 1.1rem;
    max-width: 700px;
    color: #4f6b80;
}

/* section 2 : PAGE TITLE / CONTEXT */

.devices-section-title {
    font-size: 1.24rem;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
    font-weight: 700;
    color: #022a46;
    margin-bottom: 25px;
    margin-top: 15px;
}

/* section 3 : DEVICES GRID */

.devices-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 24px;
}

@media (max-width: 1200px) {
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .devices-grid {
        grid-template-columns: 1fr;
    }
}

/* device card */

.device-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .device-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    }

    .device-card img {
        width: 100%;
        max-width: 200px;
        height: auto;
        object-fit: contain;
        margin: 0 auto 15px auto;
        display: block;
    }

/* device info */

.device-info h3 {
    font-size: 1.15rem;
    color: #022a46;
    font-weight: 700;
    margin-bottom: 6px;
}

.device-info p {
    color: #4f6b80;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* device action button */

.device-action {
    background: #2d64d8;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    width: fit-content;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

    .device-action:hover {
        background: #1e4cb3;
        transform: translateY(-1px);
    }

    .device-action:active {
        transform: translateY(0);
    }

/* Dark mode → css/dark/admin/dark-admin-devices.css */

