Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 151 additions & 39 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
* {
box-sizing: border-box;
}
:root {
--surface: #ffffff;
--primary: #1a73e8;
--primary-strong: #0f5ac1;
--muted: #4a5568;
--border: #d9e2ef;
--success: #2a9d8f;
--danger: #d62828;
--warning: #ffb703;
--card: #f8fafc;
}
body {
font-family: Arial, Helvetica, sans-serif;
background: #f4f7f9;
Expand All @@ -21,12 +32,12 @@ a:hover {
.container {
max-width: 1200px;
margin: 20px auto;
background: #fff;
background: var(--surface);
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
h1, h2 {
h1, h2, h3 {
margin-top: 0;
}
h1 {
Expand All @@ -43,6 +54,32 @@ h2 {
outline-offset: 2px;
}

/* Layout helpers */
.section {
margin-bottom: 40px;
}
.section-header {
margin-bottom: 6px;
}
.page-header {
margin-bottom: 10px;
}
.page-intro {
margin: 4px 0 12px;
color: var(--muted);
font-size: 1.05rem;
}
.page-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 16px;
}
.stack {
display: flex;
flex-direction: column;
gap: 12px;
}

/* Forms */
form {
display: block;
Expand All @@ -55,33 +92,42 @@ label {
}
input, select, textarea, button {
width: 100%;
padding: 8px;
padding: 10px;
margin-top: 4px;
border: 1px solid #ccc;
border-radius: 5px;
border-radius: 8px;
font-family: inherit;
}
textarea {
min-height: 80px;
min-height: 96px;
resize: vertical;
}
button {
background: #0077cc;
color: #fff;
border: none;
cursor: pointer;
margin-top: 10px;
border-radius: 8px;
padding: 10px 12px;
font-weight: 600;
}
button:hover {
background: #005fa3;
}
button.approve { background: #2a9d8f; }
button.approve { background: var(--success); }
button.reject { background: #e63946; }
button.dismiss { background: #ffb703; color: black; }
button.remove { background: #d62828; }
button.dismiss { background: var(--warning); color: black; }
button.remove { background: var(--danger); }

.primary {
background: #1a73e8;
border: 1px solid #0f5ac1;
background: var(--primary);
border: 1px solid var(--primary-strong);
}
.secondary {
background: #e2e8f0;
color: #1f2937;
border: 1px solid #cbd5e0;
}

.form-surface {
Expand All @@ -103,6 +149,8 @@ button.remove { background: #d62828; }

.form-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: flex-start;
margin-top: 8px;
}
Expand All @@ -115,35 +163,49 @@ button.remove { background: #d62828; }

.alert {
padding: 10px;
border-radius: 5px;
border-radius: 8px;
margin: 10px 0;
border: 1px solid transparent;
}

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

.alert-error {
background: #f8d7da;
border-color: #f5c6cb;
color: #721c24;
}
.alert-info {
background: #ebf5ff;
border-color: #bfdcff;
color: #1a4f8b;
}

/* Cards */
.card {
border: 1px solid #ddd;
border-radius: 8px;
padding: 12px;
border-radius: 10px;
padding: 14px;
margin-bottom: 12px;
background: #fafafa;
background: var(--card);
}
.card img {
max-width: 150px;
.card img, .card video {
max-width: 180px;
border-radius: 5px;
margin-top: 5px;
display: block;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
}
.card-meta {
color: var(--muted);
font-size: 0.95rem;
}

/* Tables */
Expand All @@ -169,24 +231,26 @@ tr:hover {
.status-approved { color: green; font-weight: bold; }
.status-rejected { color: red; font-weight: bold; }
.status-pending { color: orange; font-weight: bold; }
.status-response { color: #1a4f8b; font-weight: bold; }

/* Layout Helpers */
.section {
margin-bottom: 40px;
}
.filters {
margin: 10px 0;
padding: 10px;
background: #f7f7f7;
border: 1px solid #ddd;
border-radius: 5px;
}
.badge {
display: inline-block;
padding: 4px 8px;
border-radius: 999px;
font-size: 0.85rem;
background: #e2e8f0;
color: #1f2937;
border: 1px solid #cbd5e0;
}
.badge-primary { background: #e8f1ff; color: #1a4f8b; border-color: #cfe0ff; }
.badge-danger { background: #ffe6e6; color: #9b1c1c; border-color: #ffc9c9; }
.badge-success { background: #e6f4ea; color: #116530; border-color: #c1e2cc; }
.badge-warning { background: #fff2d6; color: #8a4b00; border-color: #ffdf9b; }

/* Map */
.map-section {
margin: 24px 0;
}

.map-frame {
height: 500px;
margin: 10px 0 8px;
Expand All @@ -196,20 +260,64 @@ tr:hover {
border: 1px solid #d9e2ef;
}

.section-header {
margin-bottom: 6px;
/* Navigation */
.top-nav {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 10px 0 18px;
}
.top-nav a {
padding: 8px 12px;
background: #eef2f7;
border-radius: 8px;
border: 1px solid #d8dee9;
font-weight: 600;
color: #1f2937;
}

.page-header {
margin-bottom: 10px;
/* Panels */
.panel {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 16px;
box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}
.panel-title {
margin: 0 0 6px;
}
.panel-description {
margin: 0 0 10px;
color: var(--muted);
}

.page-intro {
margin: 4px 0 12px;
color: #4a5568;
font-size: 1.05rem;
/* Feed */
.feed { display: grid; gap: 12px; }
.feed-item {
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px;
background: #fff;
}
.feed-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 8px;
}

/* Admin */
.role-select {
min-width: 150px;
}
.action-buttons {
display: flex;
flex-wrap: wrap;
gap: 6px;
}

/* Responsive */
@media (max-width: 640px) {
.container {
margin: 12px;
Expand All @@ -219,5 +327,9 @@ tr:hover {
.map-frame {
height: 360px;
}
}

.card-header {
flex-direction: column;
align-items: flex-start;
}
}
Loading