first commit UasSIGWebgis
This commit is contained in:
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
session_start();
|
||||
$role = $_SESSION['role'] ?? null;
|
||||
$is_logged_in = isset($_SESSION['login']);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Portal Utama - WebGIS Poverty Mapping</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--primary: #2563eb;
|
||||
--primary-dark: #1e40af;
|
||||
--sosial: #db2777;
|
||||
--infra: #059669;
|
||||
--bg: #f8fafc;
|
||||
--dark: #0f172a;
|
||||
}
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: var(--bg);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: var(--dark);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
background: linear-gradient(135deg, var(--primary), #8b5cf6);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.header p {
|
||||
font-size: 1.2rem;
|
||||
color: #64748b;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.portal-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 30px;
|
||||
width: 100%;
|
||||
max-width: 1000px;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.portal-card {
|
||||
background: white;
|
||||
border-radius: 20px;
|
||||
padding: 40px 30px;
|
||||
text-align: center;
|
||||
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
|
||||
transition: transform 0.3s, box-shadow 0.3s;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.portal-card:hover {
|
||||
transform: translateY(-10px);
|
||||
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
|
||||
}
|
||||
.card-icon {
|
||||
font-size: 4rem;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.card-infra .card-icon { color: var(--infra); }
|
||||
.card-sosial .card-icon { color: var(--sosial); }
|
||||
.card-warga .card-icon { color: var(--primary); }
|
||||
|
||||
.portal-card h2 {
|
||||
font-size: 1.5rem;
|
||||
margin: 0 0 15px 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
.portal-card p {
|
||||
color: #64748b;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.5;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
.btn-enter {
|
||||
display: inline-block;
|
||||
padding: 12px 25px;
|
||||
border-radius: 10px;
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.card-infra .btn-enter { background: var(--infra); }
|
||||
.card-sosial .btn-enter { background: var(--sosial); }
|
||||
.card-warga .btn-enter { background: var(--primary); }
|
||||
|
||||
.btn-enter:hover {
|
||||
opacity: 0.9;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.auth-bar {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 30px;
|
||||
}
|
||||
.btn-auth {
|
||||
background: white;
|
||||
color: var(--primary);
|
||||
padding: 10px 20px;
|
||||
border-radius: 10px;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
||||
transition: 0.3s;
|
||||
}
|
||||
.btn-auth.logout {
|
||||
color: #ef4444;
|
||||
}
|
||||
.btn-auth:hover {
|
||||
box-shadow: 0 6px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
.locked-badge {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
background: #f1f5f9;
|
||||
color: #94a3b8;
|
||||
padding: 5px 10px;
|
||||
border-radius: 8px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div class="header">
|
||||
<h1>WebGIS Poverty Mapping</h1>
|
||||
<p>Pusat Integrasi Data GIS Kota Pontianak</p>
|
||||
</div>
|
||||
|
||||
<div class="portal-grid">
|
||||
<!-- Project 1: Infrastruktur -->
|
||||
<div class="portal-card card-infra">
|
||||
<i class="fas fa-city card-icon"></i>
|
||||
<h2>Fasilitas & Tata Kota</h2>
|
||||
<p>Manajemen data spasial fasilitas umum, jaringan jalan raya, batas kepemilikan lahan, dan lokasi SPBU.</p>
|
||||
<a href="../infra/index.php" class="btn-enter">Buka Dashboard <i class="fas fa-arrow-right"></i></a>
|
||||
</div>
|
||||
|
||||
<!-- Project 2: Sosial & Warga -->
|
||||
<div class="portal-card card-sosial">
|
||||
<i class="fas fa-hands-helping card-icon"></i>
|
||||
<h2>Sosial & Kemasyarakatan</h2>
|
||||
<p>Pemetaan kawasan rentan, distribusi penduduk, pemantauan rumah ibadah, dan pelaporan darurat.</p>
|
||||
<a href="../sosial/index.php" class="btn-enter">Buka Dashboard <i class="fas fa-arrow-right"></i></a>
|
||||
</div>
|
||||
|
||||
<!-- Project 3: Publik / Warga -->
|
||||
<div class="portal-card card-warga">
|
||||
<i class="fas fa-bullhorn card-icon"></i>
|
||||
<h2>Portal Publik (Warga)</h2>
|
||||
<p>Akses terbuka untuk masyarakat. Lihat fasilitas umum terdekat dan lakukan pelaporan cepat kedaruratan.</p>
|
||||
<a href="../warga/index.php" class="btn-enter">Akses Publik <i class="fas fa-arrow-right"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,322 @@
|
||||
<?php
|
||||
session_start();
|
||||
require_once '../api/db.php';
|
||||
|
||||
if (isset($_SESSION['login'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
$error = '';
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$username = $_POST['username'] ?? '';
|
||||
$password = $_POST['password'] ?? '';
|
||||
|
||||
$stmt = $conn->prepare("SELECT * FROM users WHERE username = ?");
|
||||
$stmt->bind_param("s", $username);
|
||||
$stmt->execute();
|
||||
$result = $stmt->get_result();
|
||||
|
||||
if ($row = $result->fetch_assoc()) {
|
||||
if (password_verify($password, $row['password'])) {
|
||||
$_SESSION['login'] = true;
|
||||
$_SESSION['username'] = $username;
|
||||
$_SESSION['role'] = $row['role'] ?? 'warga';
|
||||
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
} else {
|
||||
$error = 'Username atau Password salah!';
|
||||
}
|
||||
} else {
|
||||
$error = 'Username atau Password salah!';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Login - WebGIS Poverty Mapping</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(135deg, #0f172a, #1e293b, #3b82f6);
|
||||
background-size: 400% 400%;
|
||||
animation: gradientBG 15s ease infinite;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@keyframes gradientBG {
|
||||
0% { background-position: 0% 50%; }
|
||||
50% { background-position: 100% 50%; }
|
||||
100% { background-position: 0% 50%; }
|
||||
}
|
||||
|
||||
/* Glassmorphism card */
|
||||
.login-container {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 20px;
|
||||
padding: 40px;
|
||||
width: 100%;
|
||||
max-width: 360px;
|
||||
box-shadow: 0 15px 35px rgba(0,0,0,0.2);
|
||||
transform: translateY(20px);
|
||||
opacity: 0;
|
||||
animation: fadeUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
@keyframes fadeUp {
|
||||
to {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.login-header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.login-header i {
|
||||
font-size: 48px;
|
||||
color: #3b82f6;
|
||||
margin-bottom: 15px;
|
||||
filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
|
||||
}
|
||||
|
||||
.login-header h1 {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
margin-bottom: 5px;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.login-header p {
|
||||
font-size: 14px;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.form-group input {
|
||||
width: 100%;
|
||||
padding: 15px 20px;
|
||||
padding-left: 45px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
outline: none;
|
||||
transition: all 0.3s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.form-group input:focus {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
|
||||
}
|
||||
|
||||
.form-group input::placeholder {
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.form-group > i {
|
||||
position: absolute;
|
||||
left: 18px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
transition: all 0.3s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.form-group input:focus + i {
|
||||
color: #3b82f6;
|
||||
}
|
||||
|
||||
.toggle-password {
|
||||
position: absolute;
|
||||
right: 18px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.toggle-password i {
|
||||
position: static;
|
||||
transform: none;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.toggle-password:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-login {
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
background: linear-gradient(135deg, #3b82f6, #2563eb);
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.btn-login:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
|
||||
}
|
||||
|
||||
.btn-login:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.error-message {
|
||||
background: rgba(239, 68, 68, 0.2);
|
||||
border: 1px solid rgba(239, 68, 68, 0.5);
|
||||
color: #fca5a5;
|
||||
padding: 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
animation: shake 0.5s;
|
||||
}
|
||||
|
||||
@keyframes shake {
|
||||
0%, 100% { transform: translateX(0); }
|
||||
25% { transform: translateX(-5px); }
|
||||
75% { transform: translateX(5px); }
|
||||
}
|
||||
|
||||
/* Floating shapes */
|
||||
.shape {
|
||||
position: absolute;
|
||||
filter: blur(60px);
|
||||
z-index: 1;
|
||||
opacity: 0.6;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.shape-1 {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
background: #ec4899;
|
||||
top: -50px;
|
||||
left: -50px;
|
||||
animation: float 8s infinite alternate ease-in-out;
|
||||
}
|
||||
.shape-2 {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background: #8b5cf6;
|
||||
bottom: -100px;
|
||||
right: -100px;
|
||||
animation: float 12s infinite alternate-reverse ease-in-out;
|
||||
}
|
||||
.shape-3 {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
background: #14b8a6;
|
||||
top: 40%;
|
||||
left: 60%;
|
||||
animation: float 10s infinite alternate ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes float {
|
||||
0% { transform: translate(0, 0) scale(1); }
|
||||
100% { transform: translate(30px, 30px) scale(1.1); }
|
||||
}
|
||||
|
||||
.footer-text {
|
||||
text-align: center;
|
||||
margin-top: 25px;
|
||||
font-size: 12px;
|
||||
color: rgba(255,255,255,0.4);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shape shape-1"></div>
|
||||
<div class="shape shape-2"></div>
|
||||
<div class="shape shape-3"></div>
|
||||
|
||||
<div class="login-container">
|
||||
<div class="login-header">
|
||||
<i class="fas fa-map-marked-alt"></i>
|
||||
<h1>WebGIS Poverty Mapping</h1>
|
||||
<p>Dashboard Eksekutif Terpadu</p>
|
||||
</div>
|
||||
|
||||
<?php if ($error): ?>
|
||||
<div class="error-message">
|
||||
<i class="fas fa-exclamation-circle"></i> <?php echo htmlspecialchars($error); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="">
|
||||
<div class="form-group">
|
||||
<input type="text" name="username" placeholder="Username" required autocomplete="off">
|
||||
<i class="fas fa-user"></i>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" name="password" id="password" placeholder="Password" required>
|
||||
<i class="fas fa-lock"></i>
|
||||
<span class="toggle-password" onclick="togglePassword()">
|
||||
<i class="fas fa-eye" id="eyeIcon"></i>
|
||||
</span>
|
||||
</div>
|
||||
<button type="submit" class="btn-login">Masuk Dashboard</button>
|
||||
</form>
|
||||
|
||||
<div class="footer-text">
|
||||
© 2026 WebGIS Poverty Mapping. All rights reserved.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function togglePassword() {
|
||||
var pwd = document.getElementById('password');
|
||||
var icon = document.getElementById('eyeIcon');
|
||||
if (pwd.type === 'password') {
|
||||
pwd.type = 'text';
|
||||
icon.classList.remove('fa-eye');
|
||||
icon.classList.add('fa-eye-slash');
|
||||
} else {
|
||||
pwd.type = 'password';
|
||||
icon.classList.remove('fa-eye-slash');
|
||||
icon.classList.add('fa-eye');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
session_unset();
|
||||
session_destroy();
|
||||
header("Location: login.php");
|
||||
exit;
|
||||
?>
|
||||
@@ -0,0 +1,149 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||||
|
||||
:root {
|
||||
--primary: #2563eb;
|
||||
--primary-hover: #1d4ed8;
|
||||
--dark: #0f172a;
|
||||
--dark-grad: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
||||
--success: #10b981;
|
||||
--success-hover: #059669;
|
||||
--danger: #ef4444;
|
||||
--danger-hover: #dc2626;
|
||||
--warning: #f59e0b;
|
||||
--bg-light: #f8fafc;
|
||||
--border: #e2e8f0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0; padding: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
overflow: hidden; display: flex;
|
||||
background: #e2e8f0;
|
||||
}
|
||||
|
||||
#map { width: 100vw; height: 100vh; z-index: 1; }
|
||||
|
||||
/* Custom Sleek Scrollbar */
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
|
||||
|
||||
/* SEARCH & MENU */
|
||||
.search-container { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1100; width: 380px; }
|
||||
.search-box {
|
||||
background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px);
|
||||
border-radius: 50px; display: flex; align-items: center; padding: 5px 20px;
|
||||
box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.5);
|
||||
transition: 0.3s ease;
|
||||
}
|
||||
.search-box:focus-within { box-shadow: 0 10px 30px rgba(37,99,235,0.2); border-color: var(--primary); }
|
||||
.search-box i { color: #64748b; font-size: 1.1rem; }
|
||||
.search-box input[type="text"] {
|
||||
border: none !important; outline: none; padding: 12px 10px; margin: 0;
|
||||
width: 100%; background: transparent !important; font-size: 0.95rem;
|
||||
color: var(--dark); font-weight: 500; box-shadow: none !important;
|
||||
}
|
||||
.search-box input::placeholder { color: #94a3b8; }
|
||||
|
||||
.menu-toggle {
|
||||
position: absolute; bottom: 30px; left: 20px; z-index: 1200;
|
||||
background: var(--dark-grad); color: white; border: none;
|
||||
width: 55px; height: 55px; border-radius: 50%; cursor: pointer;
|
||||
box-shadow: 0 10px 25px rgba(15,23,42,0.4); font-size: 1.4rem;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
.menu-toggle:hover { transform: scale(1.1) rotate(5deg); }
|
||||
.menu-toggle:active { transform: scale(0.95); }
|
||||
|
||||
/* SIDEBAR */
|
||||
#sidebar {
|
||||
width: 360px; height: 100vh; background: white; border-right: 1px solid var(--border);
|
||||
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
z-index: 1150; position: absolute; left: 0; transform: translateX(-100%);
|
||||
display: flex; flex-direction: column; box-shadow: 5px 0 25px rgba(0,0,0,0.05);
|
||||
}
|
||||
#sidebar.active { transform: translateX(0); }
|
||||
.sidebar-header { padding: 25px 20px; background: var(--dark-grad); color: white; border-bottom: 3px solid var(--primary); }
|
||||
.sidebar-header h3 { margin: 0 0 5px 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
|
||||
.sidebar-header small { color: #cbd5e1; font-weight: 500; font-size: 0.85rem;}
|
||||
.sidebar-content { padding: 20px; overflow-y: auto; flex: 1; background: var(--bg-light); }
|
||||
|
||||
/* PANEL INPUT */
|
||||
.panel-input {
|
||||
position: absolute; top: 20px; right: 20px; width: 320px;
|
||||
background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
|
||||
border-radius: 16px; padding: 25px 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.12);
|
||||
z-index: 1000; max-height: 85vh; overflow-y: auto; border: 1px solid rgba(255,255,255,0.6);
|
||||
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
|
||||
transform-origin: top right;
|
||||
}
|
||||
.panel-input.collapsed {
|
||||
transform: scale(0.9) translateX(150%);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.panel-input h4 { color: var(--dark); font-size: 1.1rem; font-weight: 700; border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-top: 0; }
|
||||
|
||||
/* RADIUS SLIDER */
|
||||
.radius-box {
|
||||
background: #eff6ff; padding: 15px; border-radius: 12px; margin-bottom: 20px;
|
||||
border: 1px solid #bfdbfe; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
|
||||
}
|
||||
.radius-box label { font-size: 0.85rem; font-weight: 700; color: var(--primary); display: block; margin-bottom: 8px;}
|
||||
input[type=range] { width: 100%; cursor: pointer; accent-color: var(--primary); }
|
||||
|
||||
/* UI HELPERS */
|
||||
input[type=text], input[type=number], input[type=date], select, textarea {
|
||||
width: 100%; padding: 12px 15px; margin: 0 0 15px;
|
||||
border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box;
|
||||
transition: all 0.3s ease; font-family: 'Inter', sans-serif; font-size: 0.9rem;
|
||||
background: #f8fafc; color: var(--dark);
|
||||
}
|
||||
input:focus, select:focus, textarea:focus {
|
||||
border-color: var(--primary); outline: none; background: white;
|
||||
box-shadow: 0 0 0 4px rgba(37,99,235,0.15); transform: translateY(-1px);
|
||||
}
|
||||
select { cursor: pointer; font-weight: 500; }
|
||||
textarea { resize: vertical; min-height: 80px; }
|
||||
|
||||
/* CARDS IN SIDEBAR */
|
||||
.card {
|
||||
background: #ffffff; padding: 15px; border-radius: 12px; margin-bottom: 12px;
|
||||
border: 1px solid var(--border); font-size: 0.85rem;
|
||||
box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
.card::before { content:''; position:absolute; left:0; top:0; width:4px; height:100%; background: var(--primary); opacity: 0; transition: 0.3s; }
|
||||
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px rgba(0,0,0,0.06); border-color: #cbd5e1; }
|
||||
.card:hover::before { opacity: 1; }
|
||||
.card b { color: var(--dark); display: block; font-size: 0.95rem; margin-bottom: 4px; font-weight: 700;}
|
||||
|
||||
.hidden { display: none !important; }
|
||||
|
||||
/* BUTTONS */
|
||||
.btn-save {
|
||||
background: var(--success); color: white; border: none; padding: 14px;
|
||||
border-radius: 10px; font-weight: 700; cursor: pointer; width: 100%;
|
||||
font-size: 1rem; transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); text-transform: uppercase; letter-spacing: 0.5px;
|
||||
}
|
||||
.btn-save:hover { background: var(--success-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4); }
|
||||
.btn-save:active { transform: translateY(0); }
|
||||
|
||||
.btn-del {
|
||||
background: #fee2e2; color: var(--danger); border: none; padding: 5px 10px;
|
||||
border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: 0.2s;
|
||||
}
|
||||
.btn-del:hover { background: var(--danger); color: white; }
|
||||
|
||||
.badge {
|
||||
display: inline-block; padding: 4px 8px; border-radius: 6px;
|
||||
font-size: 0.7rem; font-weight: 700; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 1rem; font-weight: 700; color: var(--dark);
|
||||
margin: 20px 0 12px 0; border-bottom: 2px solid var(--border);
|
||||
padding-bottom: 8px; display: flex; align-items: center; gap: 8px;
|
||||
}
|
||||
Reference in New Issue
Block a user