SpaceM / style.css
HarizalD's picture
Update style.css
2b2a160 verified
Raw History Blame Contribute Delete
2.51 kB
/* Reset dasar */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
background: #f5f7fa;
color: #333;
line-height: 1.6;
}
/* Header */
.header {
background: #1e293b;
color: #fff;
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 1000;
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo h1 {
font-size: 1.2rem;
font-weight: 600;
}
/* Navigation */
.nav {
display: flex;
gap: 1rem;
}
.nav-btn {
background: transparent;
border: none;
color: #fff;
cursor: pointer;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 6px;
transition: background 0.3s;
}
.nav-btn:hover,
.nav-btn.active {
background: #334155;
}
/* Main */
.main {
padding: 2rem;
}
.section {
display: none;
}
.section.active {
display: block;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.section-header h2 {
font-size: 1.2rem;
color: #1e293b;
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.5rem 1rem;
border-radius: 6px;
border: none;
cursor: pointer;
font-weight: 500;
}
.btn-primary {
background: #2563eb;
color: #fff;
}
.btn-primary:hover {
background: #1d4ed8;
}
.btn-secondary {
background: #e2e8f0;
color: #1e293b;
}
.btn-secondary:hover {
background: #cbd5e1;
}
/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.stat-card {
background: #fff;
border-radius: 10px;
padding: 1rem;
display: flex;
align-items: center;
gap: 1rem;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.stat-icon {
font-size: 1.5rem;
color: #2563eb;
}
.stat-info h3 {
font-size: 1.4rem;
margin-bottom: 0.2rem;
}
/* Tables */
.table-container {
overflow-x: auto;
background: #fff;
padding: 1rem;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.data-table {
width: 100%;
border-collapse: collapse;
}
.data-table th,
.data-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid #e5e7eb;
text-align: left;
}
.data-table th {
background: #f1f5f9;
font-weight: 600;
}
/* Forms & Inputs */
.search-input,
.filter-select,
.modal input,
.modal textarea,
.modal select {
width: 100%;
padding: 0.6rem;
border: