@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #f28123;
    /* CertiSeg Orange */
    --primary-hover: #e06d0f;
    --bg-dark: #64748b;
    /* Slate-500 equivalent */
    --bg-card: #ffffff;
    --bg-page: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    --border: #e5e7eb;
    --success: #059669;
    --danger: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Auth Styles */
.auth-container {
    max-width: 400px;
    margin: 5rem auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
}

.auth-title span {
    color: var(--primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 129, 35, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: var(--text-main);
    color: white;
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
}

/* Dashboard Styles */
.header-dark {
    background-color: var(--bg-dark);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-dark h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.header-dark h1 span {
    color: var(--primary);
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border-radius: 0.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-black {
    background: var(--bg-dark);
    color: white;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

tr:hover td {
    background-color: #f9fafb;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.125rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 600px;
    border-radius: 0.25rem;
    padding: 2.5rem;
    position: relative;
    border-top: 4px solid var(--primary);
}

/* Transitions */
[x-cloak] {
    display: none !important;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.text-xs {
    font-size: 0.75rem;
}

.text-muted {
    color: var(--text-muted);
}

.font-bold {
    font-weight: 700;
}

.text-white {
    color: white;
}

.text-danger {
    color: var(--danger);
}

.mb-8 {
    margin-bottom: 2rem;
}

.fixed {
    position: fixed;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.z-100 {
    z-index: 100;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-sm {
    font-size: 0.875rem;
}

/* Icon Button Styles */
.btn-icon {
    padding: 0.5rem !important;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}