/* Palawan State University theme for YOURLS. Colors taken from the PSU seal and logo. */
:root {
    --psu-blue: #1f5fa6;
    --psu-blue-dark: #174a84;
    --psu-gold: #e7b22e;
    --psu-ink: #141414;
    --psu-muted: #565857;
    --psu-line: #dcdedf;
    --psu-bg: #f4f5f7;
}

body {
    background: var(--psu-bg);
    color: var(--psu-ink);
    font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

a { color: var(--psu-blue); }
a:hover { color: var(--psu-blue-dark); }

/* Page wrapper: flat white panel instead of the YOURLS blue frame */
#wrap {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding-top: 0;
}

/* Header: replace the YOURLS logo with the PSU logo */
header[role="banner"] {
    background: #fff;
    border-bottom: 4px solid var(--psu-gold);
    margin: 0 -20px 20px;
    padding: 14px 20px;
    overflow: hidden;
    text-align: center;
}
header[role="banner"] h1 {
    float: none;
    height: auto;
    max-width: none;
    margin: 0;
}
header[role="banner"] h1 a {
    display: block;
    float: none;
    width: 453px;
    max-width: 100%;
    height: 100px;
    margin: 0 auto;
    background: url("logo.png") center / contain no-repeat;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
}
header[role="banner"] h1 a span,
header[role="banner"] h1 a br,
#yourls-logo { display: none; }

/* Login card */
body.login #login {
    background: #fff;
    border: 1px solid var(--psu-line);
    border-top: 4px solid var(--psu-blue);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    max-width: 340px;
    margin: 30px auto;
    padding: 24px 28px;
}
body.login #login label { font-weight: 600; color: var(--psu-muted); }
body.login #login p.error { color: #b3261e; font-weight: 600; }

/* Inputs and buttons */
input.text, input[type="text"], input[type="password"], textarea, select {
    border: 1px solid var(--psu-line);
    border-radius: 4px;
    padding: 6px 8px;
}
input.text:focus, input[type="text"]:focus, input[type="password"]:focus {
    border-color: var(--psu-blue);
    outline: 2px solid rgba(31, 95, 166, .25);
}
.button, input.button, input[type="submit"] {
    background: var(--psu-blue);
    border: 1px solid var(--psu-blue-dark);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
}
.button:hover, input.button:hover, input[type="submit"]:hover {
    background: var(--psu-blue-dark);
    color: #fff;
}

/* Admin tables and panels */
#new_url, #new_url_form, .tablenav, #main_table {
    background: #fff;
}
#main_table thead th, table.tblSorter thead th {
    background: var(--psu-blue);
    color: #fff;
    border-color: var(--psu-blue-dark);
}
#main_table tbody tr:hover td { background: #fff7de; }
#admin_menu li a, #admin_menu_sublinks li a { color: var(--psu-blue); }
#admin_menu li.current a, #admin_menu_sublinks li.current a {
    border-bottom: 3px solid var(--psu-gold);
}
.notice, .success { border-left: 4px solid var(--psu-gold); }

/* Footer */
#footer p { border: 0; border-radius: 0; background: transparent; }
#footer, footer[role="contentinfo"] {
    color: var(--psu-muted);
    border-top: 1px solid var(--psu-line);
    margin-top: 30px;
    padding-top: 12px;
    text-align: center;
}
