/* ==========================
   IMAGINATECH - SISTEMA DE ORÇAMENTO
   CSS Principal - Com Sistema de Autenticação
   Arquivo: styles-custo.css
   ========================== */

/* Root Variables */
:root {
    --primary-blue: #2A6EA7;
    --secondary-blue: #57D4CA;
    --neon-blue: #00D4FF;
    --neon-red: #FF0055;
    --neon-green: #00FF88;
    --neon-yellow: #FFD700;
    --neon-purple: #9945FF;
    --neon-orange: #FF6B35;
    --dark-bg: #0a0e1a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    position: relative;
    line-height: 1.6;
}

/* ===========================
   BACKGROUND EFFECTS
   =========================== */

.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 50%, #0a0e1a 100%);
    pointer-events: none;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.5;
}

@keyframes float {
    from { 
        transform: translateY(100vh) translateX(0); 
    }
    to { 
        transform: translateY(-100px) translateX(100px); 
    }
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { 
        transform: translate(0, 0); 
    }
    100% { 
        transform: translate(50px, 50px); 
    }
}

/* ===========================
   LOADING OVERLAY
   =========================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
}

/* ===========================
   LOGIN SCREEN
   =========================== */

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.login-container {
    text-align: center;
    max-width: 450px;
    width: 100%;
}

.login-logo {
    margin-bottom: 40px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px var(--neon-blue)); 
    }
    50% { 
        filter: drop-shadow(0 0 40px var(--neon-blue)); 
    }
}

.login-logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.login-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: var(--neon-purple);
    margin-bottom: 20px;
}

.login-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.btn-google {
    width: 100%;
    padding: 15px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    font: 900 1.5rem 'Orbitron', monospace;
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: -5px;
    font-weight: 600;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.connection-status.offline .status-dot {
    background: var(--neon-red);
    animation: none;
}

.connection-status.offline {
    border-color: rgba(255, 0, 85, 0.3);
    background: rgba(255, 0, 85, 0.1);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(0, 255, 136, 0);
    }
}

.navbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===========================
   MATERIAL SELECTION
   =========================== */

.material-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.material-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.material-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.2);
}

.material-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), rgba(153, 69, 255, 0.7));
    border-color: var(--neon-purple);
    color: white;
    box-shadow: 0 4px 20px rgba(153, 69, 255, 0.3);
}

.custom-price-field {
    margin-top: 10px;
    padding: 10px;
    background: rgba(153, 69, 255, 0.05);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 8px;
}

/* ===========================
   PRINTER SELECTION
   =========================== */

.printer-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.printer-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Orbitron', monospace;
    white-space: nowrap;
}

.printer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.printer-btn.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    border-color: var(--neon-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

/* ===========================
   UNIFIED CONTROLS LAYOUT
   =========================== */

.control-with-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.display-box {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(87, 212, 202, 0.1));
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    position: relative;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.material-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-purple);
    text-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
}

/* Material display box with purple border */
.material-display + .buttons-grid {
    /* Just spacing, purple color already set */
}

.form-section:has(.material-display) .display-box {
    border-color: var(--neon-purple);
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.1), rgba(0, 212, 255, 0.1));
}

.buttons-grid {
    display: grid;
    gap: 8px;
}

.buttons-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.buttons-grid-2x3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.increment-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
}

.increment-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.increment-btn:active {
    transform: translateY(0);
}

.increment-btn i {
    font-size: 0.75rem;
}

.material-btn-unit {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ===========================
   CONTAINER & LAYOUT
   =========================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 15px;
}

.form-column {
    min-width: 400px;
}

.results-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===========================
   CARDS
   =========================== */

.form-card,
.results-card,
.print-actions-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-card::before,
.results-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--secondary-blue));
}

.results-card::before {
    background: linear-gradient(90deg, var(--neon-green), #44FF44);
}

.print-actions-card {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.05), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--neon-purple);
}

.form-card:hover,
.results-card:hover,
.print-actions-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.form-header,
.results-header {
    margin-bottom: 15px;
}

.form-title,
.results-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: var(--neon-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-title {
    color: var(--neon-green);
}

/* ===========================
   FORM ELEMENTS
   =========================== */

.form-section {
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.85rem;
}

.form-label i {
    color: var(--neon-blue);
    font-size: 0.8rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===========================
   DROPDOWN CUSTOMIZADO FUTURÍSTICO
   =========================== */

.form-select {
    /* Remove aparência padrão do navegador */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Estilo base */
    cursor: pointer;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 24, 39, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 500;

    /* Seta customizada usando gradiente */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(16, 24, 39, 0.95) 100%),
        linear-gradient(45deg, transparent 50%, var(--neon-blue) 50%),
        linear-gradient(135deg, var(--neon-blue) 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 15px) calc(50% - 2px);
    background-size:
        100% 100%,
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;

    /* Animação suave */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-select:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.form-select:focus {
    border-color: var(--neon-blue);
    box-shadow:
        0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(0, 212, 255, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 46, 1) 0%, rgba(16, 24, 39, 1) 100%);
    transform: translateY(-2px);

    /* Seta fica mais brilhante no focus */
    background-image:
        linear-gradient(135deg, rgba(26, 26, 46, 1) 0%, rgba(16, 24, 39, 1) 100%),
        linear-gradient(45deg, transparent 50%, #00ff88 50%),
        linear-gradient(135deg, #00ff88 50%, transparent 50%);
    background-position:
        0 0,
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 15px) calc(50% - 2px);
    background-size:
        100% 100%,
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

.form-select:active {
    transform: translateY(0);
}

/* Estilização das opções (com limitações de navegador) */
.form-select option {
    background-color: #16213e;
    color: #e0e0e0;
    padding: 12px 16px;
    font-weight: 500;
}

.form-select option:hover {
    background-color: #1e3a5f;
    color: var(--neon-blue);
}

.form-select option:checked,
.form-select option:focus {
    background: linear-gradient(135deg, #2A6EA7 0%, #1e5a8e 100%);
    color: #ffffff;
    font-weight: 600;
}

.form-select option:disabled {
    color: rgba(255, 255, 255, 0.3);
    background-color: rgba(26, 26, 46, 0.5);
    font-style: italic;
}

.form-select optgroup {
    font-weight: 600;
    color: var(--neon-blue);
    background-color: rgba(26, 26, 46, 0.9);
    padding: 0.5rem 1rem;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

/* Efeito de glow quando aberto */
.form-select:focus::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-blue));
    border-radius: inherit;
    opacity: 0.3;
    z-index: -1;
    filter: blur(8px);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* Time Input Container */
.time-input-container {
    display: flex;
    gap: 15px;
}

.time-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.time-input-group .form-input {
    padding-right: 50px;
}

.input-suffix {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===========================
   RESULTS SECTION
   =========================== */

.results-content {
    color: rgba(255, 255, 255, 0.9);
}

.cost-breakdown {
    margin-bottom: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.cost-item:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-label {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-label i {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.cost-value {
    font-weight: 600;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 12px 0;
}

.total-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    animation: pulse-glow 3s infinite;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.total-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    color: var(--neon-red);
    border-color: var(--neon-red);
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
}

.btn-print {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--neon-purple), #B845FF);
    color: white;
    box-shadow: 0 4px 20px rgba(153, 69, 255, 0.3);
    margin-top: 10px;
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(153, 69, 255, 0.5);
}

.btn-print i {
    font-size: 1.2rem;
}

/* ===========================
   EMPTY STATE
   =========================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--neon-blue);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1200px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-column {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .login-logo h1 {
        font-size: 2.5rem;
    }

    /* Navbar mobile */
    .navbar {
        padding: 15px 10px;
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Logo section responsiva */
    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    /* Connection status compacto */
    .connection-status {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Botões de navegação mobile */
    .btn-nav {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .btn-nav span {
        font-size: 0.85rem;
    }

    /* User info mobile */
    .user-info {
        gap: 0.5rem;
    }

    .user-photo {
        width: 35px;
        height: 35px;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .user-role {
        font-size: 0.7rem;
    }

    /* Botão logout */
    .btn-logout {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn-text {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .material-buttons {
        grid-template-columns: 1fr 1fr;
    }
    
    .time-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-input-group {
        width: 100%;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .form-card,
    .results-card,
    .print-actions-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* Navbar extra small */
    .navbar {
        padding: 12px 8px;
    }

    .navbar-left {
        gap: 8px;
    }

    .navbar-right {
        gap: 6px;
        flex-direction: row;
        justify-content: center;
    }

    /* Logo ainda menor */
    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    /* Connection status muito compacto */
    .connection-status {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .connection-status span {
        display: none;
    }

    .status-dot {
        width: 10px;
        height: 10px;
    }

    /* Botões mais compactos */
    .btn-nav {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .btn-nav i {
        font-size: 0.9rem;
    }

    /* User details texto escondido em telas pequenas */
    .user-details {
        display: none;
    }

    .user-photo {
        width: 32px;
        height: 32px;
    }

    /* Botão logout apenas ícone */
    .btn-logout {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Login e outros elementos */
    .login-logo h1 {
        font-size: 2rem;
    }

    .login-card {
        padding: 30px 20px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .form-title,
    .results-title {
        font-size: 1.1rem;
    }

    .material-buttons {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   SCROLLBAR
   =========================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--neon-blue), var(--secondary-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .cosmic-bg,
    .header,
    .footer,
    .btn,
    .login-screen,
    .loading-overlay {
        display: none !important;
    }
    
    .form-card,
    .results-card,
    .print-actions-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}
