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

:root {
    --primary-50: #f0f4ff;
    --primary-100: #e0e8ff;
    --primary-500: #4361ee;
    --primary-600: #3a56d4;
    --primary-700: #3046b9;
    --secondary-500: #7209b7;
    --secondary-600: #6508a3;
    --accent-500: #4cc9f0;
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-500);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-500);
    border-radius: 3px 3px 0 0;
}

.nav-user {
    position: relative;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.user-info:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    color: var(--gray-700);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-user:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-500);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-500);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-600);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
}

.btn-danger {
    background: var(--error-500);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: var(--success-500);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Main Content */
#main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.section {
    display: none;
    padding: 40px 0;
    min-height: calc(100vh - 70px);
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-50);
    color: var(--primary-500);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    max-width: 400px;
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar.small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.user-info .user-name {
    font-weight: 600;
    color: var(--gray-900);
}

.user-title {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.card-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: var(--primary-50);
    color: var(--primary-500);
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.project-meta {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Auth Sections */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-600);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

input, select, textarea {
    font-family: inherit;
    font-size: 0.875rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 24px;
    padding: 16px;
    background: var(--primary-50);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--primary-700);
    text-align: center;
}

.demo-credentials p {
    margin-bottom: 4px;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 48px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.dashboard-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.wave {
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, var(--secondary-500), #9d4edd);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, var(--success-500), #34d399);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.section-header p {
    color: var(--gray-600);
}

.recommendation-card {
    margin-bottom: 24px;
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-900);
}

.action-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 16px;
}

.action-icon.primary {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
}

.action-icon.secondary {
    background: linear-gradient(135deg, var(--secondary-500), #9d4edd);
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.action-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.recent-activity {
    padding: 24px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    padding: 24px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.project-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-recruiting {
    background: var(--success-50);
    color: var(--success-500);
}

.status-active {
    background: var(--primary-50);
    color: var(--primary-500);
}

.status-completed {
    background: var(--gray-100);
    color: var(--gray-600);
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.required-roles {
    margin-bottom: 16px;
}

.role-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.role-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-name {
    font-weight: 500;
    color: var(--gray-900);
}

.role-skills {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.role-count {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.project-actions {
    display: flex;
    gap: 8px;
}

.filters-card {
    padding: 24px;
    margin-bottom: 24px;
}

.filters-header {
    margin-bottom: 16px;
}

.filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.filters-content {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.tags-input {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 8px;
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--primary-50);
    color: var(--primary-500);
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-remove:hover {
    background: rgba(0, 0, 0, 0.1);
}

.tags-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 4px;
    min-width: 100px;
}

.role-input {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.role-input input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
}

.role-input .role-count {
    width: 80px;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.user-card {
    padding: 24px;
    text-align: center;
}

.user-avatar.large {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.user-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.user-title {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.user-bio {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.5;
}

.user-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}

.skill-tag {
    background: var(--success-50);
    color: var(--success-500);
    padding: 4px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.user-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Workspace */
.workspace-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}

.workspace-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-900);
}

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

.team-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

.team-member:hover {
    background: var(--gray-50);
}

.member-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
}

.status-online {
    background: var(--success-500);
}

.status-offline {
    background: var(--gray-400);
}

.status-busy {
    background: var(--warning-500);
}

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

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--gray-600);
    font-weight: 500;
}

.info-value {
    color: var(--gray-900);
    font-weight: 500;
}

.workspace-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-50);
    color: var(--primary-500);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.chat-container {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.chat-message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
}

.chat-message.own .message-content {
    background: var(--primary-500);
    color: white;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: 4px;
}

.message-sender {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.chat-message.own .message-sender {
    text-align: right;
}

.message-text {
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.chat-message.own .message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
}

.chat-input .input-with-icon {
    flex: 1;
}

.chat-input input {
    width: 100%;
    padding: 12px 16px 12px 44px;
}

.task-board {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.task-column {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.task-column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.task-item {
    background: white;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-500);
}

.task-item.in-progress {
    border-left-color: var(--warning-500);
}

.task-item.done {
    border-left-color: var(--success-500);
}

.task-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.task-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-task-btn {
    width: 100%;
    margin-top: 12px;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.files-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

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

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background-color 0.3s ease;
}

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

.file-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-50);
    color: var(--primary-500);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.file-actions {
    display: flex;
    gap: 8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid var(--success-500);
}

.toast.error {
    border-left-color: var(--error-500);
}

.toast.warning {
    border-left-color: var(--warning-500);
}

.toast.info {
    border-left-color: var(--primary-500);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.toast.success .toast-icon {
    background: var(--success-500);
}

.toast.error .toast-icon {
    background: var(--error-500);
}

.toast.warning .toast-icon {
    background: var(--warning-500);
}

.toast.info .toast-icon {
    background: var(--primary-500);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .workspace-layout {
        grid-template-columns: 1fr;
    }
    
    .task-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-content {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .project-card,
    .user-card {
        padding: 16px;
    }
    
    .chat-message {
        max-width: 90%;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-500);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--gray-600);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.hidden { display: none; }
