:root {
    --primary-color: #1abc9c; /* Teal/Aqua do Eng Control */
    --secondary-color: #2c3e50;
    --dark-sidebar: #1a1c23;
    --light-bg: #f5f6f8;
    --white: #ffffff;
    --text-color: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --radius: 12px;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.5;
}

/* Sidebar */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--dark-sidebar);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-nav ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.sidebar-nav i {
    margin-right: 15px;
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-top h1 {
    font-size: 28px;
    font-weight: 700;
}

/* Search and Filters */
.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    position: relative;
}

.search-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
}

.filter-select {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.tag-frente {
    background: #e0f2f1;
    color: #00796b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.date-muted {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.progress-bar-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.card-footer {
    display: flex;
    gap: 10px;
}

.badge {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-status {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.badge-priority {
    background: #fef2f2;
    color: #991b1b;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #148f77;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
}

.checkbox-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    background: #fafafa;
}

.activity-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.activity-item.child {
    padding-left: 25px;
}

/* Auth */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--dark-sidebar);
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
