/* 
 * Style: Rich Glassmorphism Dark Orange Design System
 * Application: Team Progress & Standup Tracker
 * Author: Antigravity AI
 */

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

:root {
    --bg-main: #0c0c0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 107, 53, 0.4);
    
    --accent-orange: #FF6B35;
    --accent-orange-glow: rgba(255, 107, 53, 0.3);
    --accent-orange-gradient: linear-gradient(135deg, #FF6B35 0%, #D84A16 100%);
    
    --text-primary: #F8F9FA;
    --text-secondary: #A0AEC0;
    --text-muted: #64748B;
    
    --status-track: #10B981;
    --status-track-glow: rgba(16, 185, 129, 0.25);
    --status-blocker: #EF4444;
    --status-blocker-glow: rgba(239, 68, 68, 0.35);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Stunning Ambient Blurred Blobs in the Background */
body::before, body::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: float 20s ease-in-out infinite alternate;
}

body::before {
    background: var(--accent-orange);
    top: -100px;
    left: -100px;
}

body::after {
    background: #E85D04;
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

/* Extra animated blob for extreme visual depth */
.ambient-blob-3 {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #FF9F1C;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* Glassmorphism Card and Container Elements */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Glassmorphic Form Fields & Inputs */
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

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

.glass-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px var(--accent-orange-glow);
}

/* Select element customization */
select.glass-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

select.glass-input option {
    background: #18181b;
    color: var(--text-primary);
}

/* Labels and Headers */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-orange-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff7e4f 0%, #eb521a 100%);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Centered Authentication Form Layout */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Animated header accent line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange-gradient);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--accent-orange);
    text-shadow: 0 0 10px var(--accent-orange-glow);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

/* Status Indicators and Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-track {
    background: rgba(16, 185, 129, 0.1);
    color: var(--status-track);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px var(--status-track-glow);
}

.badge-blocker {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px var(--status-blocker-glow);
}

/* Subtle glowing blocker card style */
.card-blocker {
    box-shadow: 0 0 25px var(--status-blocker-glow), 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.card-blocker:hover {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 35px var(--status-blocker-glow), 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #A7F3D0;
}

/* -------------------------------------------------------------
 * DASHBOARD & LAYOUT STYLING
 * ------------------------------------------------------------- */

/* Two-column dashboard container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.app-sidebar {
    width: 280px;
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 10;
    transition: var(--transition-smooth);
}

/* Sidebar User Profile Info */
.sidebar-profile {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-orange-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--accent-orange-glow);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border-light);
}

/* Sidebar Navigation Items */
.sidebar-menu {
    list-style: none;
    padding: 1.5rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.25);
    box-shadow: inset 0 0 12px rgba(255, 107, 53, 0.05);
}

.sidebar-link.active svg {
    color: var(--accent-orange);
    filter: drop-shadow(0 0 5px var(--accent-orange-glow));
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Main Dashboard Panel */
.app-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 2.5rem;
    min-width: 0; /* Prevents flex children from breaking layout */
}

/* Main Header inside Content */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Dynamic Feed Grid */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.75rem;
}

/* Glass Standup Feed Card */
.feed-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid var(--border-light);
}

.feed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.poster-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.poster-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent-orange);
}

.poster-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.poster-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feed-card-project {
    background: rgba(255, 107, 53, 0.05);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 107, 53, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-card-body {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Task description label */
.feed-card-body h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.feed-card-body p {
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Custom Interactive Progress Bar Display */
.progress-container {
    margin-top: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-header span:first-child {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-header span:last-child {
    color: var(--accent-orange);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: var(--accent-orange-gradient);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Blocker info display */
.blocker-box {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    font-size: 0.85rem;
}

.blocker-box h5 {
    color: #F87171;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blocker-box p {
    color: #FCA5A5;
}

/* Filter controls on Dashboard */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-badge-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.filter-badge:hover, .filter-badge.active {
    background: var(--accent-orange-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* -------------------------------------------------------------
 * PREMIUM INTERACTIVE MODAL STYLING
 * ------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 100%;
    max-width: 550px;
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-orange-gradient);
}

.modal-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(0,0,0,0.15);
}

/* Custom Styled Range Slider */
.slider-group {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
    background: rgba(255, 107, 53, 0.1);
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange-glow);
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 10px var(--accent-orange-glow);
    transition: transform 0.1s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Empty states */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
 * PROJECTS MODULE STYLING
 * ------------------------------------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.project-card {
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.25px;
}

.project-card-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: auto;
}

.project-card-stats span strong {
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * RESPONSIVE ADAPTABILITY
 * ------------------------------------------------------------- */

@media (max-width: 992px) {
    .app-sidebar {
        width: 80px;
    }
    
    .sidebar-profile {
        padding: 1.5rem 0.5rem;
    }
    
    .user-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .user-name, .user-role, .sidebar-link span, .sidebar-footer {
        display: none;
    }
    
    .sidebar-menu {
        padding: 1.5rem 0.5rem;
        align-items: center;
    }
    
    .sidebar-link {
        padding: 0.85rem;
        justify-content: center;
    }
    
    .app-content {
        margin-left: 80px;
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .app-sidebar {
        width: 0;
        transform: translateX(-100%);
    }
    
    .app-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .app-sidebar.active {
        width: 280px;
        transform: translateX(0);
    }
    
    .feed-grid {
        grid-template-columns: 1fr;
    }
}
