
* {
    box-sizing: border-box;
    font-family: "Hubballi";
 
    --background-color: #2b2d2f;   
    --foreground-color: #f0eae1;   
    --accent-green: #606c38;       
    --accent-bright-green: #7d8d4c;
    --accent-gold: #dda15e;        
    --accent-clay: #bc6c25;        
    --card-bg: #383b3e;            
    --border-dark: #191a1b;        
}

body {
    display: block;
    width: 100vw;
    height: 100vh;
    font-size: 15pt;
    background-color: var(--background-color);
    color: var(--foreground-color);
    margin: 0px;
    padding: 24px;
}

/* Generic Structural Layout Defaults */

div, section, article, header, footer, main, nav, aside {
    display: block;
}

span, em, strong, a {
    display: inline;
}

/* Typographic Defaults */
p {
    display: block;
    margin: 0px;
}

h1, h2, h3, h4, h5, h6 {
    display: block;
    font-weight: bold;
    margin: 0px;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }

em { font-style: italic; }
strong { font-weight: bold; }

/* ==========================================================================
   Form Inputs & Interactive UI Components
   ========================================================================== */
button, input, select, textarea {
    display: inline-block;
    font-family: "Hubballi";
    font-size: 14pt;
    margin: 0px;
    vertical-align: middle;
}

button {
    padding: 6px 16px;
    background-color: var(--accent-green);
    color: var(--foreground-color);
    border: 3px var(--border-dark);
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

button:hover {
    background-color: var(--accent-bright-green);
}

button:active {
    background-color: var(--accent-gold);
    color: var(--border-dark);
}

input[type="text"], textarea {
    padding: 8px 12px;
    background-color: #212325;
    color: var(--foreground-color);
    border: 3px var(--border-dark);
    border-radius: 6px;
    width: 100%;
}

input[type="text"]:focus, textarea:focus {
    background-color: #2b2d2f;
    border-color: var(--accent-bright-green);
}

textarea {
    display: block;
    height: 150px;
}

/*  ===================================
    App Header
    =================================== */
#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: var(--accent-green);
    border: 3px var(--border-dark);
    border-radius: 8px;
    margin-bottom: 24px;
}

.header-title-group {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
}

#header h1 {
    font-size: 2.5em;
    color: var(--foreground-color);
    letter-spacing: 1px;
}

.header-tag {
    font-size: 12pt;
    font-weight: bold;
    background-color: var(--border-dark);
    color: var(--accent-gold);
    padding: 2px 10px;
    border-radius: 12px;
}

#new-critter-btn {
    height: 48px;
    width: 48px;
    border-radius: 8px;
    font-size: 28pt;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px var(--border-dark);
    background-color: var(--accent-gold);
    color: var(--border-dark);
    padding: 0px;
}

#new-critter-btn:hover {
    background-color: var(--accent-bright-green);
    color: var(--foreground-color);
}

/*  ===================================
    Drawer List Styles
    =================================== */
.critter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.critter-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 14px;
    background-color: var(--card-bg);
    color: var(--foreground-color);
    border: 3px var(--border-dark);
    border-left: 10px var(--accent-green);
    border-radius: 6px;
    text-align: left;
}

.critter-card:hover {
    background-color: #45484c;
    border-left-color: var(--accent-bright-green);
}

.critter-card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.thumb-frame {
    background-color: var(--accent-green);
    border: 2px var(--border-dark);
    border-radius: 4px;
    padding: 2px;
}

.critter-thumb {
    width: 50px;
    height: 50px;
}

.critter-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.critter-card-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.critter-name {
    font-size: 18pt;
    margin: 0px;
    color: var(--foreground-color);
}

.critter-id {
    font-size: 11pt;
    font-weight: bold;
    color: var(--accent-gold);
}

.info-pills {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.pill {
    font-size: 12pt;
    background-color: #212325;
    color: var(--foreground-color);
    border: 1px var(--accent-green);
    padding: 1px 8px;
    border-radius: 4px;
}

.btn-delete {
    padding: 4px 10px;
    font-size: 11pt;
    font-weight: bold;
    background-color: var(--accent-clay);
    color: #ffffff;
    border: 2px var(--border-dark);
    border-radius: 4px;
}

.btn-delete:hover {
    background-color: #a3561a;
}

/*  ===================================
    Modals Layout
    =================================== */
.modal-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #1f1f1fdd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--foreground-color);
    border: 4px var(--border-dark);
    border-radius: 10px;
    width: 600px;
    padding: 0px;
    display: flex;
    flex-direction: column;
}

.modal-content-small {
    width: 450px;
}

.modal-header {
    background-color: var(--accent-green);
    color: #ffffff;
    padding: 12px 20px;
    border-bottom: 3px var(--border-dark);
}

.modal-header h2 {
    font-size: 20pt;
    color: #ffffff;
}

.modal-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.form-group.half {
    width: 50%;
}

.modal-content label {
    font-size: 14pt;
    font-weight: bold;
    color: var(--foreground-color);
}

.error {
    color: #ffffff;
    font-weight: bold;
    padding: 8px;
    border: 2px var(--border-dark);
    background-color: var(--accent-clay);
    border-radius: 4px;
}

.dialog-text {
    font-size: 18pt;
    color: var(--foreground-color);
    padding: 10px 0px;
}

.modal-buttons {
    padding: 14px 20px;
    background-color: #2b2d2f;
    border-top: 3px var(--border-dark);
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-end;
}

.modal-buttons button {
    min-width: 120px;
    height: 42px;
    font-size: 16pt;
}

.btn-cancel {
    background-color: #45484c;
    color: var(--foreground-color);
}

.btn-cancel:hover {
    background-color: #565a5f;
}

.btn-submit {
    background-color: var(--accent-green);
    color: #ffffff;
}

.btn-submit:hover {
    background-color: var(--accent-bright-green);
}