﻿:root {
    --ph-green: #b9d94c;
    --ph-green-light: #dff0a3;
    --ph-green-dark: #6f8f18;
    --ph-green-deep: #45610c;
    --ph-black: #080a08;
    --ph-dark: #111511;
    --ph-gray: #687064;
    --ph-light: #f5f7f0;
    --ph-white: #ffffff;
    --ph-border: #dfe5d5;
    --ph-shadow: 0 12px 35px rgba(36, 52, 15, .10);
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ph-dark);
    background: radial-gradient(circle at 10% 10%, rgba(185, 217, 76, .22), transparent 28%), radial-gradient(circle at 90% 20%, rgba(126, 180, 46, .15), transparent 30%), linear-gradient(135deg, #f8faf4 0%, #eef4e5 45%, #ffffff 100%);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Fundo geométrico */
.ph-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

    .ph-background::before,
    .ph-background::after {
        content: "";
        position: absolute;
        width: 70%;
        height: 260px;
        transform: rotate(-8deg);
        opacity: .55;
    }

    .ph-background::before {
        top: -80px;
        left: -10%;
        background: linear-gradient( 120deg, rgba(188, 220, 99, .70), rgba(95, 166, 83, .25), rgba(255, 255, 255, 0) );
    }

    .ph-background::after {
        right: -15%;
        bottom: -50px;
        transform: rotate(8deg);
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0), rgba(185, 217, 76, .30), rgba(71, 143, 64, .55) );
    }

/* =========================================================
   NAVBAR
   ========================================================= */

.ph-navbar {
    position: relative;
    background: linear-gradient(110deg, #070907 0%, #111611 55%, #25351b 100%);
    border: 0;
    border-bottom: 4px solid var(--ph-green);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .18);
}

    .ph-navbar::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 35%;
        height: 100%;
        background: linear-gradient( 135deg, transparent, rgba(185, 217, 76, .10) );
        pointer-events: none;
    }

.ph-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ph-brand-mark {
    width: 34px;
    height: 34px;
    position: relative;
    background: linear-gradient( 145deg, #dff39a, #a9cd43 );
    border: 2px solid #fff;
    box-shadow: 4px 4px 0 rgba(185, 217, 76, .30);
}

    .ph-brand-mark::before {
        content: "";
        position: absolute;
        width: 12px;
        height: 12px;
        background: #050505;
        top: 4px;
        left: 10px;
    }

    .ph-brand-mark::after {
        content: "";
        position: absolute;
        width: 9px;
        height: 13px;
        background: #050505;
        bottom: 3px;
        right: 3px;
    }

/* =========================================================
   CONTAINER / TÍTULOS
   ========================================================= */

.ph-page {
    position: relative;
    padding-top: 28px;
    padding-bottom: 45px;
}

.ph-page-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ph-black);
    letter-spacing: -.5px;
}

    .ph-page-title::after {
        content: "";
        display: block;
        width: 55px;
        height: 4px;
        margin-top: 10px;
        background: var(--ph-green);
    }

.ph-subtitle {
    color: var(--ph-gray);
    margin-top: 10px;
    font-size: .92rem;
}

/* =========================================================
   CARDS
   ========================================================= */

.ph-card {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--ph-border);
    border-left: 5px solid var(--ph-green);
    border-radius: 0 !important;
    box-shadow: var(--ph-shadow);
    overflow: hidden;
}

.ph-card-header {
    padding: 18px 22px;
    background: linear-gradient( 100deg, #ffffff 0%, #f5f9e9 100% );
    border-bottom: 1px solid var(--ph-border);
}

    .ph-card-header h5 {
        margin: 0;
        font-weight: 800;
        color: var(--ph-black);
    }

.ph-card-body {
    padding: 22px;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
    border-radius: 0 !important;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.ph-btn-primary {
    color: #111 !important;
    border: 0;
    background: linear-gradient( 135deg, #d9ee8b, #aaca3c );
    box-shadow: 4px 4px 0 rgba(72, 98, 14, .18);
}

    .ph-btn-primary:hover {
        background: linear-gradient( 135deg, #e2f39d, #b5d64a );
    }

.ph-btn-dark {
    color: #fff !important;
    background: linear-gradient( 135deg, #070907, #252d22 );
    border: 1px solid #070907;
}

.ph-btn-green {
    color: #101400 !important;
    border: 0;
    background: linear-gradient( 135deg, #d6ed82, #92b82d );
}

.ph-btn-outline {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.45);
    background: transparent;
}

    .ph-btn-outline:hover {
        color: #111 !important;
        background: var(--ph-green);
        border-color: var(--ph-green);
    }

/* =========================================================
   TABELAS
   ========================================================= */

.ph-table {
    margin-bottom: 0;
    vertical-align: middle;
}

    .ph-table thead th {
        padding: 15px 14px;
        color: #fff;
        background: linear-gradient( 100deg, #111611, #27321d );
        border: 0;
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .7px;
        white-space: nowrap;
    }

    .ph-table tbody td {
        padding: 15px 14px;
        border-bottom: 1px solid #e7ebe1;
        color: #30372d;
    }

    .ph-table tbody tr {
        background: #fff;
        transition: background .15s ease;
    }

        .ph-table tbody tr:hover {
            background: #f3f8e6;
        }

        .ph-table tbody tr:last-child td {
            border-bottom: 0;
        }

/* =========================================================
   BADGES / STATUS
   ========================================================= */

.ph-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 0 !important;
    font-size: .75rem;
    font-weight: 800;
    background: #edf4d7;
    color: #526c12;
    border-left: 3px solid var(--ph-green);
}

.ph-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 800;
}

.ph-status-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
}

.ph-status-online .ph-status-dot {
    background: #54a829;
    box-shadow: 0 0 0 4px rgba(84, 168, 41, .12);
}

.ph-status-offline .ph-status-dot {
    background: #c62828;
    box-shadow: 0 0 0 4px rgba(198, 40, 40, .10);
}

/* =========================================================
   FORMULÁRIOS
   ========================================================= */

.form-label {
    font-weight: 700;
    color: #31372d;
    font-size: .88rem;
}

.form-control {
    border-radius: 0 !important;
    border: 1px solid #cfd7c5;
    min-height: 46px;
    background: #fbfcf8;
    box-shadow: none !important;
}

    .form-control:focus {
        border-color: var(--ph-green-dark);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(185, 217, 76, .20) !important;
    }

/* =========================================================
   LOGIN
   ========================================================= */

.ph-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: linear-gradient( 135deg, #eef6df 0%, #ffffff 45%, #dceca8 100% );
}

.ph-login-wrapper {
    width: 100%;
    max-width: 940px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 45% 55%;
    background: #fff;
    box-shadow: 0 25px 70px rgba(48, 68, 20, .18);
}

.ph-login-brand {
    position: relative;
    overflow: hidden;
    padding: 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient( 145deg, #080b08 0%, #192317 55%, #55721b 100% );
}

    .ph-login-brand::before {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        right: -180px;
        top: -150px;
        transform: rotate(35deg);
        background: rgba(185, 217, 76, .18);
    }

    .ph-login-brand::after {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        left: -160px;
        bottom: -140px;
        transform: rotate(35deg);
        background: rgba(185, 217, 76, .14);
    }

.ph-login-logo {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 12px;
}

    .ph-login-logo span {
        color: var(--ph-green);
    }

.ph-login-description {
    position: relative;
    z-index: 1;
    color: #dce5d2;
    line-height: 1.6;
    max-width: 330px;
}

.ph-login-form {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .ph-login-form h1 {
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 5px;
    }

    .ph-login-form .subtitle {
        color: var(--ph-gray);
        margin-bottom: 30px;
    }

/* =========================================================
   ALERTAS
   ========================================================= */

.ph-alert {
    border-radius: 0 !important;
    border: 0;
    border-left: 4px solid #c62828;
    background: #fff0f0;
    color: #8b2020;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 768px) {

    .ph-login-wrapper {
        grid-template-columns: 1fr;
    }

    .ph-login-brand {
        min-height: 220px;
        padding: 35px;
    }

    .ph-login-logo {
        font-size: 2.2rem;
    }

    .ph-login-form {
        padding: 35px 25px;
    }

    .ph-table {
        min-width: 700px;
    }

    .ph-table-wrapper {
        overflow-x: auto;
    }

    .ph-navbar .container {
        gap: 15px;
    }
}
