/* 
    Absolut!Hub - Briefing Platform Styles
    Theme: Modern, Dark Mode, Premium, Glassmorphism
*/

:root {
    /* Color Palette - Absolut!Hub */
    --bg-dark: #050505;
    /* Preto absoluto rico */
    --bg-panel: rgba(15, 15, 15, 0.4);
    /* Painel glassmorph escuríssimo */
    --bg-panel-hover: rgba(25, 25, 25, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    /* Borda sutil / Titânio */
    --border-highlight: rgba(245, 130, 32, 0.3);
    /* Laranja na borda reduzido */

    /* Accents */
    --accent-primary: #f58220;
    /* Laranja Absolut */
    --accent-hover: #d96f17;
    /* Laranja Absolut (Hover) */
    --accent-secondary: #ffffff;
    --brand-glow: rgba(245, 130, 32, 0.15);
    /* Glow laranja suave */

    /* Text */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #18181b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utilities */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--brand-glow) 0%, transparent 50%);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

/* Application Layout (SaaS Architecture) */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Auth Top Header (Apenas não logado) */
.app-header {
    width: 100%;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    margin: 0;
}

/* Sidebar (Para usuários logados) */
.app-sidebar {
    width: 250px;
    background: rgba(10, 10, 12, 0.95);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.sidebar-logo {
    margin-bottom: 2.5rem;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.sidebar-link.active {
    background: rgba(245, 130, 32, 0.1);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Main Content Wrapper */
.app-main-wrapper {
    flex: 1;
    margin-left: 250px;
    /* offset para a sidebar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-auth .app-main-wrapper {
    margin-left: 0;
    /* zera o offset quando nao tem sidebar */
}

.app-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
}

.app-footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* UI Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(245, 130, 32, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 130, 32, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--border-highlight);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--text-main);
    border-color: var(--border-highlight);
    background: var(--bg-panel);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* Glass Panels / Cards */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-bottom: 2rem;
}

.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.5) 0%, rgba(5, 5, 5, 0.8) 100%);
}

.project-card:hover {
    border-color: var(--border-highlight);
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.6) 0%, rgba(10, 10, 10, 0.9) 100%);
    transform: translateY(-6px);
    box-shadow: 0 10px 30px -10px rgba(245, 130, 32, 0.2);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Login specific styles */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    /* header + footer approx */
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 1rem;
}

/* Tooltips e Textos de Ajuda (?) */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: help;
    margin-left: 0.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tooltip-container:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

.tooltip-container::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-body);
    white-space: normal;
    width: max-content;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1000;
    text-align: left;
}

/* Setinha do balão */
.tooltip-container::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.tooltip-container:hover::after,
.tooltip-container:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}