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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Melhor experiência touch em mobile */
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(236, 112, 20, 0.2);
}

:root {
    /* Modern Mood Brand Colors */
    --brand-orange: #EC7014;
    --brand-off-white: #F8F3EB;
    --brand-black: #141414;
    --brand-pink: #F1B3C2;
    --brand-green: #E0F431;
    
    /* Functional Colors */
    --primary-color: #EC7014;
    --primary-hover: #d46312;
    --success-color: #10b981;
    --warning-color: #EC7014;
    --danger-color: #ef4444;
    --gray-50: #F8F3EB;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #141414;
    --gray-800: #1f2937;
    --gray-900: #141414;
    --sidebar-width: 280px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--brand-off-white);
    color: var(--brand-black);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--brand-off-white);
    border-bottom: 2px solid var(--brand-orange);
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: var(--brand-black);
}

.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-700);
    line-height: 1;
}

.sidebar-content {
    padding: 1rem;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-black);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--brand-black);
    transition: all 0.2s;
    text-align: left;
}

.menu-item:hover:not(:disabled) {
    background: rgba(236, 112, 20, 0.1);
    color: var(--brand-orange);
}

.menu-item.active {
    background: var(--brand-orange);
    color: white;
}

.menu-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.header {
    background: white;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(20, 20, 20, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid var(--brand-orange);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-orange);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(236, 112, 20, 0.1);
}

.content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Modern Cards */
.card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 16px rgba(20, 20, 20, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(236, 112, 20, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink), var(--brand-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(236, 112, 20, 0.12);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-black);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 112, 20, 0.1) 0%, rgba(241, 179, 194, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
}

.card-body {
    position: relative;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Card variations */
.card-elevated {
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(20, 20, 20, 0.08);
}

.card-flat {
    box-shadow: none;
    border: 2px solid var(--gray-100);
}

.card-flat:hover {
    transform: none;
    border-color: var(--brand-orange);
}

.card-highlight {
    border: 2px solid var(--brand-orange);
    background: linear-gradient(145deg, #fff8f3 0%, #ffffff 100%);
}

.card-highlight::before {
    opacity: 1;
}

/* Buttons - Modern Design */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 112, 20, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d46312 0%, var(--brand-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 112, 20, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(236, 112, 20, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--brand-black);
    border: 2px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-outline:hover:not(:disabled) {
    background: var(--brand-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 112, 20, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-info:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled::before {
    display: none;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-group-vertical {
    flex-direction: column;
}

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

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--brand-black);
}

/* Modern Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    color: var(--brand-black);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
    border-color: var(--gray-300);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(236, 112, 20, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ec7014' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-input {
    padding-left: 2.75rem;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.input-icon-wrapper .form-input:focus + .input-icon,
.input-icon-wrapper:focus-within .input-icon {
    color: var(--brand-orange);
}

/* Form Group */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

/* Invalid state */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Valid state */
.form-input.is-valid,
.form-select.is-valid,
.form-textarea.is-valid {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.form-input.is-valid:focus,
.form-select.is-valid:focus,
.form-textarea.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modern Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: capitalize;
    transition: all 0.2s ease;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(224, 244, 49, 0.2) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-success::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.2) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(254, 202, 202, 0.3) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(147, 197, 253, 0.2) 100%);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-neutral {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(156, 163, 175, 0.15) 100%);
    color: var(--gray-600);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Modern Loading Spinner */
.spinner {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 2rem auto;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.spinner::before {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(236, 112, 20, 0.15);
}

.spinner::after {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--brand-orange);
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Spinner sizes */
.spinner-sm {
    width: 24px;
    height: 24px;
    margin: 0.5rem auto;
}

.spinner-sm::before,
.spinner-sm::after {
    border-width: 2px;
}

.spinner-lg {
    width: 64px;
    height: 64px;
}

.spinner-lg::before,
.spinner-lg::after {
    border-width: 4px;
}

/* Button spinner */
.btn .spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-text {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Tracking Timeline */
.tracking-timeline {
    position: relative;
    padding-left: 2rem;
}

.tracking-event {
    position: relative;
    padding-bottom: 2rem;
    border-left: 2px solid var(--gray-300);
}

.tracking-event:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.tracking-event.active {
    border-left-color: var(--primary-color);
}

.tracking-event::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid white;
}

.tracking-event.active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.event-date {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-description {
    padding-left: 1rem;
}

.event-description strong {
    color: var(--gray-900);
    display: block;
    margin-bottom: 0.25rem;
}

.event-description p {
    color: var(--gray-700);
    margin: 0.25rem 0;
}

.event-description small {
    color: var(--gray-600);
    font-size: 0.8125rem;
}

/* Badge variations */
.badge-neutral {
    background: var(--brand-off-white);
    color: var(--brand-black);
    border: 1px solid var(--gray-300);
}

.badge-primary {
    background: rgba(236, 112, 20, 0.15);
    color: var(--brand-orange);
    border: 1px solid var(--brand-orange);
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem 1rem;
}

.loading p {
    margin-top: 1rem;
    color: var(--gray-600);
}

/* Modern Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-message {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.alert-dismiss {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.alert-dismiss:hover {
    opacity: 1;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(209, 250, 229, 0.5) 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-success::before {
    background: #10b981;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(254, 226, 226, 0.5) 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-error::before {
    background: #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(254, 243, 199, 0.5) 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-warning::before {
    background: #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(219, 234, 254, 0.5) 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.alert-info::before {
    background: #3b82f6;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    animation: toast-slide-in 0.3s ease;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-exit {
    animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-out {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Balance Status */
.balance-status {
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.balance-status h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.balance-status p {
    font-size: 1.125rem;
}

.status-excelente {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-muito-bom {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.status-bom {
    background: linear-gradient(135deg, #84cc16, #65a30d);
    color: white;
}

.status-atencao {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-critico {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-sem-saldo {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .close-btn {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .logo {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
    }
    
    /* Mostrar logo no header mobile */
    .header-logo-link {
        display: block;
        order: 2;
        justify-self: center;
    }
    
    .menu-toggle {
        order: 1;
    }
    
    #pageTitle {
        order: 3;
        font-size: 0.875rem;
        text-align: right;
        grid-column: span 3;
    }
    
    .balance-status h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    /* Formulários empilhados */
    form {
        grid-template-columns: 1fr !important;
    }
    
    /* Botões em coluna */
    .form-actions,
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards de etiquetas */
    .label-card,
    .order-card {
        padding: 1rem;
    }
    
    .label-card h3,
    .order-card h3 {
        font-size: 1rem;
    }
    
    /* Home Page Mobile */
    .home-welcome {
        padding: 1.5rem;
    }
    
    .home-welcome h2 {
        font-size: 1.5rem;
    }
    
    .home-welcome p {
        font-size: 1rem;
    }
    
    .home-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .quick-action-card {
        padding: 1.5rem 1rem;
    }
    
    .quick-action-card i {
        font-size: 2rem;
    }
    
    .quick-action-card span {
        font-size: 1rem;
    }
    
    .quick-action-card small {
        font-size: 0.8125rem;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 0.75rem;
    }
    
    .header {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .header-logo {
        height: 28px;
    }
    
    #pageTitle {
        font-size: 0.8125rem;
    }
    
    .balance-status h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .menu-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    /* Melhorar touch targets em mobile */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 44px; /* iOS touch target */
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 0.875rem;
    }
    
    /* Modal ocupa mais espaço em mobile */
    .cancel-modal-content {
        width: 95% !important;
        max-width: none;
        padding: 1.5rem !important;
    }
    
    .cancel-modal-header {
        margin: -1.5rem -1.5rem 1rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    /* Tabelas responsivas */
    table {
        font-size: 0.875rem;
    }
    
    td, th {
        padding: 0.5rem !important;
    }
    
    /* Home Mobile Pequeno */
    .home-welcome {
        padding: 1.25rem;
    }
    
    .home-welcome h2 {
        font-size: 1.25rem;
    }
    
    .home-welcome p {
        font-size: 0.9375rem;
    }
    
    .stat-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .stat-content h4 {
        font-size: 0.8125rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .quick-actions-grid {
        gap: 0.75rem;
    }
    
    .quick-action-card {
        padding: 1.25rem 0.875rem;
        gap: 0.5rem;
    }
    
    .quick-action-card i {
        font-size: 1.75rem;
    }
    
    .quick-action-card span {
        font-size: 0.9375rem;
    }
    
    .quick-action-card small {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .balance-status h2 {
        font-size: 1.25rem;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .header-logo {
        height: 24px;
    }
    
    .card h2 {
        font-size: 1.25rem;
    }
    
    /* Ajustes finos para telas muito pequenas */
    .sidebar-content {
        padding: 0.75rem;
    }
    
    .menu-section {
        margin-bottom: 1.5rem;
    }
    
    /* Home Mobile Muito Pequeno */
    .home-welcome h2 {
        font-size: 1.125rem;
    }
    
    .home-welcome p {
        font-size: 0.875rem;
    }
    
    .home-quick-actions h3 {
        font-size: 1.25rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem;
    }
    
    .quick-action-card i {
        font-size: 1.5rem;
    }
}

/* Modal de Cancelamento */
.cancel-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.cancel-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cancel-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cancel-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-pink) 100%);
}

.cancel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(236, 112, 20, 0.2);
}

.cancel-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-black);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.cancel-modal-header h3 i {
    color: var(--danger-color);
}

.cancel-modal-header h3 i {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.cancel-modal-close {
    background: rgba(236, 112, 20, 0.1);
    border: none;
    font-size: 1.25rem;
    color: var(--brand-orange);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-modal-close:hover {
    background-color: var(--brand-orange);
    color: white;
    transform: rotate(90deg);
}

.cancel-modal-body {
    margin-bottom: 2rem;
}

.cancel-modal-info {
    background: linear-gradient(135deg, rgba(236, 112, 20, 0.08) 0%, rgba(241, 179, 194, 0.15) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--brand-orange);
    box-shadow: 0 4px 6px -1px rgba(236, 112, 20, 0.1);
}

.cancel-modal-info p {
    margin: 0.75rem 0;
    color: var(--gray-800);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cancel-modal-info p:first-child {
    margin-top: 0;
}

.cancel-modal-info p:last-child {
    margin-bottom: 0;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.cancel-modal-body .form-group {
    margin-bottom: 0;
}

.cancel-modal-body .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
}

.cancel-modal-body .form-group label i {
    color: var(--danger-color);
    margin-right: 0.5rem;
}

.cancel-modal-body textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s;
    line-height: 1.6;
}

.cancel-modal-body textarea:focus {
    outline: none;
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.cancel-modal-body textarea::placeholder {
    color: var(--gray-400);
}

.cancel-modal-body small {
    color: var(--gray-600);
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.cancel-modal-body small #charCount,
.char-count-display {
    float: right;
    font-weight: 600;
    transition: color 0.3s;
}

.cancel-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.cancel-modal-footer button {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.cancel-modal-cancel {
    background: white;
    border: 2px solid var(--gray-300) !important;
    color: var(--gray-700);
}

.cancel-modal-cancel:hover {
    background: var(--gray-50);
    border-color: var(--gray-400) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cancel-modal-confirm {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.cancel-modal-confirm:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

.cancel-modal-confirm:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

.home-welcome {
    background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-pink) 100%);
    padding: 2.5rem;
    border-radius: 1rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(236, 112, 20, 0.3);
}

.home-welcome h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.home-welcome p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Home Stats */
.home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(20, 20, 20, 0.08);
    border: 1px solid rgba(236, 112, 20, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(236, 112, 20, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: rgba(236, 112, 20, 0.15);
    color: var(--brand-orange);
}

.stat-card-success .stat-icon {
    background: rgba(224, 244, 49, 0.15);
    color: var(--brand-black);
}

.stat-card-info .stat-icon {
    background: rgba(241, 179, 194, 0.15);
    color: var(--brand-pink);
}

.stat-content h4 {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-black);
    margin: 0;
}

/* Quick Actions */
.home-quick-actions {
    margin-top: 2rem;
}

.home-quick-actions h3 {
    font-size: 1.5rem;
    color: var(--brand-black);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.quick-action-card {
    background: white;
    border: 2px solid rgba(236, 112, 20, 0.15);
    border-radius: 0.75rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.quick-action-card:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(236, 112, 20, 0.3);
}

.quick-action-card:hover i,
.quick-action-card:hover span,
.quick-action-card:hover small {
    color: white;
}

.quick-action-card i {
    font-size: 2.5rem;
    color: var(--brand-orange);
    transition: all 0.3s ease;
}

.quick-action-card span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-black);
    transition: all 0.3s ease;
}

.quick-action-card small {
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

/* ==========================================
   NEW HOME PAGE STYLES
   ========================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #ff8c42 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-text p {
    opacity: 0.9;
    font-size: 1rem;
}

.hero-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card.stat-primary .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card.stat-info .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-card.stat-success .stat-icon-wrapper {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-card.stat-orange .stat-icon-wrapper {
    background: rgba(236, 112, 20, 0.1);
    color: var(--brand-orange);
}

.stat-card.stat-error .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-black);
}

.stat-status, .stat-trend {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-status.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-status.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-trend {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.stat-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    height: 88px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Section Header */
.section-header {
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.section-header h2 i {
    color: var(--brand-orange);
}

.section-header p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Quick Actions Container */
.quick-actions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.actions-group {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

.actions-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-icon {
    font-size: 1.25rem;
}

.actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.action-card:hover {
    background: white;
    border-color: var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.action-card.action-card-primary {
    background: rgba(236, 112, 20, 0.08);
    border-color: rgba(236, 112, 20, 0.2);
}

.action-card.action-card-primary:hover {
    background: rgba(236, 112, 20, 0.12);
    border-color: var(--brand-orange);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brand-orange);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.action-card.action-card-primary .action-icon {
    background: var(--brand-orange);
    color: white;
}

.action-content {
    flex: 1;
}

.action-title {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--brand-black);
}

.action-desc {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.action-arrow {
    color: #9ca3af;
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.action-card:hover .action-arrow {
    transform: translateX(4px);
    color: var(--brand-orange);
}

/* Recent Labels */
.recent-labels-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.labels-list {
    padding: 0.5rem;
}

.label-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: background 0.2s;
}

.label-item:hover {
    background: var(--gray-50);
}

.label-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(236, 112, 20, 0.1);
    color: var(--brand-orange);
}

.label-icon.sedex {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.label-icon.pac {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.label-icon.pac-mini {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.label-info {
    flex: 1;
    min-width: 0;
}

.label-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.label-code {
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--brand-black);
}

.label-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: var(--gray-100);
    color: #6b7280;
    text-transform: uppercase;
}

.label-details, .label-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.label-details i, .label-meta i {
    margin-right: 0.25rem;
    color: #9ca3af;
}

.label-meta {
    margin-top: 0.25rem;
}

.label-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--brand-orange);
}

.labels-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
}

.labels-footer .btn-secondary {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 1rem;
}

.empty-state.error i {
    color: #ef4444;
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-actions-container {
        grid-template-columns: 1fr;
    }
    
    .label-item {
        flex-wrap: wrap;
    }
    
    .label-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

/* Header Logo Mobile */
.header-logo-link {
    display: none;
}

.header-logo {
    height: 32px;
    width: auto;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.8;
}
