/* Admin pages theme (Login, Leads, Product Catalogue) - matches the Imset website */
:root {
    --adm-primary: #007584;
    --adm-primary-dark: #005a66;
    --adm-accent: #119bd2;
    --adm-accent-light: #33c8c1;
    --adm-bg: #f5f9fc;
    --adm-border: #e0e6ef;
    --adm-text: #4a5b6c;
}

.adm-section {
    background: var(--adm-bg);
    padding: 40px 0 70px;
}

.adm-header {
    background: linear-gradient(135deg, var(--adm-primary) 0%, var(--adm-accent) 100%);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

    .adm-header::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -80px;
        width: 240px;
        height: 240px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .12);
    }

    .adm-header h2 {
        color: #fff;
        font-size: 30px;
        font-weight: 600;
        margin: 0;
        position: relative;
        z-index: 1;
    }

    .adm-header p {
        color: rgba(255, 255, 255, .85);
        margin: 8px 0 0;
        position: relative;
        z-index: 1;
    }

.adm-card {
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 117, 132, .08);
}

    .adm-card.edit-mode {
        border-left: 4px solid #ffc107;
    }

    .adm-card h3 {
        color: var(--adm-primary);
        font-size: 21px;
        font-weight: 600;
        margin: 0 0 22px;
        padding-left: 12px;
        border-left: 5px solid var(--adm-accent-light);
    }

.adm-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Buttons - same gradient as the site's .main-btn */
.adm-btn,
input.adm-btn {
    display: inline-block;
    padding: 0 26px;
    line-height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(to right, #33c8c1 0%, #119bd2 50%, #33c8c1 100%);
    background-size: 200%;
    transition: all .4s ease-out;
}

    .adm-btn:hover {
        background-position: right center;
        color: #fff;
        text-decoration: none;
    }

.adm-btn-secondary,
input.adm-btn-secondary {
    background: #6c757d;
}

    .adm-btn-secondary:hover {
        background: #545b62;
    }

/* Forms */
.adm-group {
    margin-bottom: 18px;
}

    .adm-group label {
        display: block;
        font-weight: 600;
        color: var(--adm-primary);
        margin-bottom: 6px;
    }

    .adm-group input[type=text],
    .adm-group input[type=password],
    .adm-group textarea {
        width: 100%;
        padding: 12px 14px;
        border-radius: 8px;
        border: 1px solid #ccd6e3;
        font-size: 15px;
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }

        .adm-group input:focus,
        .adm-group textarea:focus {
            border-color: var(--adm-accent);
            box-shadow: 0 0 0 3px rgba(17, 155, 210, .15);
        }

.adm-file {
    background: #f8fafc;
    border: 2px dashed #ccd6e3;
    border-radius: 10px;
    padding: 16px;
    transition: .3s;
}

    .adm-file:hover {
        border-color: var(--adm-accent);
        background: #f0fafc;
    }

.adm-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
}

/* Alerts */
.adm-alert {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.adm-alert-success {
    background: #d4edda;
    color: #155724;
}

.adm-alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Tables (GridView) */
.adm-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .adm-table th {
        background: var(--adm-primary);
        color: #fff;
        padding: 12px 14px;
        text-align: left;
        font-weight: 600;
        white-space: nowrap;
    }

    .adm-table td {
        padding: 11px 14px;
        border-bottom: 1px solid #e5e9ef;
        color: var(--adm-text);
        vertical-align: middle;
    }

    .adm-table tr:nth-child(even) td {
        background: #fafcfe;
    }

    .adm-table tr:hover td {
        background: #eef8fa;
    }

    .adm-table tr.adm-pager td,
    .adm-table tr:last-child td table td {
        background: #fff;
        text-align: center;
    }

    .adm-table tr td table {
        margin: 0 auto;
    }

        .adm-table tr td table td {
            border: 0;
            padding: 4px;
        }

        .adm-table tr td table a,
        .adm-table tr td table span {
            display: inline-block;
            min-width: 32px;
            padding: 5px 8px;
            border-radius: 6px;
            text-decoration: none;
            border: 1px solid var(--adm-border);
        }

        .adm-table tr td table span {
            background: var(--adm-primary);
            color: #fff;
            border-color: var(--adm-primary);
        }

.adm-empty {
    text-align: center;
    padding: 30px;
    color: #8998aa;
}

/* Badges / row actions */
.pdf-badge {
    display: inline-block;
    background: #e6f4f6;
    color: var(--adm-primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #b3dde3;
    transition: .3s;
}

    .pdf-badge:hover {
        background: var(--adm-primary);
        color: #fff;
    }

.action-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 2px;
    transition: .3s;
}

.btn-edit {
    background: #e8f1ff;
    color: #1e3a5f;
}

    .btn-edit:hover {
        background: #1e3a5f;
        color: #fff;
    }

.btn-del {
    background: #ffe9e4;
    color: #d9361e;
}

    .btn-del:hover {
        background: #d9361e;
        color: #fff;
    }

/* Login */
.adm-login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9f6f8 0%, #f5f9fc 50%, #e3f2fa 100%);
    font-family: 'Rubik', 'Segoe UI', sans-serif;
}

.adm-login {
    width: 100%;
    max-width: 420px;
    margin: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 34px;
    box-shadow: 0 20px 50px rgba(0, 117, 132, .18);
    border-top: 5px solid var(--adm-accent);
    text-align: center;
}

    .adm-login img {
        max-width: 120px;
        margin-bottom: 14px;
    }

    .adm-login h1 {
        color: var(--adm-primary);
        font-size: 26px;
        font-weight: 600;
        margin: 0 0 4px;
    }

    .adm-login .adm-sub {
        color: #718096;
        margin-bottom: 26px;
        font-size: 14px;
    }

    .adm-login .adm-group {
        text-align: left;
    }

    .adm-login .adm-btn {
        width: 100%;
        margin-top: 6px;
    }

    .adm-login .adm-back {
        display: inline-block;
        margin-top: 18px;
        color: var(--adm-accent);
        font-size: 14px;
        text-decoration: none;
    }

@media (max-width: 768px) {
    .adm-header h2 {
        font-size: 24px;
    }

    .adm-card {
        padding: 18px;
    }

    .adm-toolbar .adm-btn {
        width: 100%;
        text-align: center;
    }
}
