/* ==========================================================
   Penguin Operations
   Global Stylesheet
   Version 1.0.0
   ========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #102030;
    padding-bottom: 72px;
}

/* ==========================================================
   HEADER
   ========================================================== */

.topbar {
    background: #1f2933;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .3px;
}

.user-info {
    font-size: 13px;
}

.user-info a {
    color: #f4a024;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.desktop-nav {
    background: #111827;
    padding: 8px 18px;
    display: flex;
    gap: 12px;
}

.desktop-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: .2s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background: #f4a024;
    color: #111827;
}

/* ==========================================================
   PAGE LAYOUT
   ========================================================== */

.page-wrap {
    max-width: 1120px;
    margin: 22px auto;
    padding: 0 15px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
}

h1,
h2,
h3 {
    margin-top: 0;
    color: #102030;
}

/* ==========================================================
   FORM CONTROLS
   ========================================================== */

input,
select,
textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #f4a024;
    box-shadow: 0 0 0 2px rgba(244,160,36,.20);
}

/* ==========================================================
   BUTTONS
   ========================================================== */

button,
.btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

.btn-warning {
    background: #f4a024;
    color: #111827;
}

.btn-danger {
    background: #dc2626;
}

.btn-secondary {
    background: #64748b;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* ==========================================================
   TABLES
   ========================================================== */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

th {
    background: #1f2933;
    color: #ffffff;
    padding: 10px;
    text-align: left;
    border: 1px solid #334155;
}

td {
    padding: 10px;
    border: 1px solid #d7dee8;
    vertical-align: top;
}

tr:nth-child(even) {
    background: #f8fafc;
}

/* ==========================================================
   BADGES
   ========================================================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ==========================================================
   DASHBOARD
   ========================================================== */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.summary-box {
    background: #f8fafc;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 15px;
}

.summary-label {
    color: #64748b;
    font-size: 12px;
}

.summary-value {
    font-size: 25px;
    font-weight: bold;
    margin-top: 5px;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {

    max-width:1120px;
    margin:50px auto 90px;
    padding:30px 20px;

    text-align:center;

    border-top:1px solid #d7dee8;

    color:#64748b;

    line-height:1.8;

}

.footer-title{

    font-size:22px;
    font-weight:bold;
    color:#102030;

}

.footer-version{

    font-size:14px;
    color:#475569;

}

.footer-started{

    font-size:13px;
    color:#64748b;
    margin-bottom:12px;

}

.footer-credit{

    font-size:15px;
    color:#475569;

}

.footer-credit strong{

    color:#102030;

}

.footer-heart{

    color:#d62828;
    font-size:16px;
    padding:0 4px;

}

/* ==========================================================
   MOBILE NAVIGATION
   ========================================================== */

.bottom-nav {
    display: none;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:768px){

    .desktop-nav{
        display:none;
    }

    .page-wrap{
        margin:12px auto;
        padding:0 10px;
    }

    .card{
        padding:16px;
    }

    .summary-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer{

        margin:40px auto 80px;
        padding:20px 15px;

    }

    .footer-title{

        font-size:18px;

    }

    .footer-credit{

        font-size:13px;

    }

    .bottom-nav{

        position:fixed;
        bottom:0;
        left:0;
        right:0;

        height:62px;

        background:#1f2933;

        display:flex;
        justify-content:space-around;
        align-items:center;

        box-shadow:0 -2px 8px rgba(0,0,0,.25);

        z-index:9999;

    }

    .bottom-nav a{

        flex:1;

        color:#ffffff;

        text-decoration:none;

        text-align:center;

        font-size:12px;

        padding:7px 2px;

    }

    .bottom-nav a span{

        display:block;
        font-size:20px;
        margin-bottom:2px;

    }

    .bottom-nav a.active{

        color:#f4a024;
        font-weight:bold;

    }

}

@media (max-width:480px){

    .summary-grid{

        grid-template-columns:1fr;

    }

}
