Files
contenedor_ibiza/public/assets/css/style.css

323 lines
5.3 KiB
CSS

:root {
--primary: #3b82f6;
--primary-dark: #2563eb;
--secondary: #64748b;
--success: #22c55e;
--danger: #ef4444;
--background: #f8fafc;
--surface: #ffffff;
--text: #0f172a;
--text-light: #64748b;
--border: #e2e8f0;
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--background);
color: var(--text);
line-height: 1.5;
}
/* Auth Layout */
.auth-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.auth-card {
background: var(--surface);
padding: 2rem;
border-radius: 1rem;
box-shadow: var(--shadow);
width: 100%;
max-width: 400px;
}
.auth-title {
text-align: center;
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 2rem;
color: var(--primary);
}
/* Forms */
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text);
}
.form-control {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 0.5rem;
font-size: 1rem;
transition: border-color 0.2s;
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: 600;
cursor: pointer;
border: none;
transition: all 0.2s;
text-decoration: none;
font-size: 1rem;
}
.btn-primary {
background-color: var(--primary);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-dark);
}
.btn-danger {
background-color: var(--danger);
color: white;
}
.btn-secondary {
background-color: var(--secondary);
color: white;
}
.btn-success {
background-color: var(--success);
color: white;
}
.btn-block {
width: 100%;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
}
/* Dashboard Layout */
.navbar {
background: var(--surface);
border-bottom: 1px solid var(--border);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
}
.nav-brand {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary);
text-decoration: none;
}
.nav-menu {
display: flex;
gap: 1.5rem;
}
.nav-link {
color: var(--text-light);
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
color: var(--primary);
}
.container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}
/* Cards & Tables */
.card {
background: var(--surface);
border-radius: 1rem;
box-shadow: var(--shadow);
padding: 1.5rem;
margin-bottom: 2rem;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
}
.table-responsive {
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--border);
}
.table th {
font-weight: 600;
color: var(--text-light);
background-color: #f8fafc;
}
.table tr:last-child td {
border-bottom: none;
}
/* Status Badges */
.badge {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.badge-success {
background: #dcfce7;
color: #166534;
}
.badge-danger {
background: #fee2e2;
color: #991b1b;
}
.badge-warning {
background: #fef3c7;
color: #92400e;
}
/* Drag & Drop */
.drag-list {
list-style: none;
}
.drag-item {
background: var(--surface);
border: 1px solid var(--border);
margin-bottom: 0.5rem;
padding: 1rem;
border-radius: 0.5rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: move;
/* Fallback */
cursor: grab;
user-select: none;
-webkit-user-select: none;
transition: transform 0.2s, box-shadow 0.2s;
}
.drag-item:active {
cursor: grabbing;
.drag-item:hover {
border-color: var(--primary);
}
.drag-item.dragging {
opacity: 0.5;
background: #f1f5f9;
}
.drag-handle {
margin-right: 1rem;
color: var(--text-light);
}
/* Alerts */
.alert {
padding: 1rem;
border-radius: 0.5rem;
margin-bottom: 1.5rem;
}
.alert-success {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
.alert-error {
background: #fee2e2;
color: #991b1b;
border: 1px solid #fecaca;
}
/* Utilities */
.text-center {
text-align: center;
}
.mt-2 {
margin-top: 0.5rem;
}
.mt-4 {
margin-top: 1rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.flex {
display: flex;
gap: 0.5rem;
}
.justify-end {
justify-content: flex-end;
}