/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #202020;
    background-color: #fafafa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    flex-shrink: 0;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.logo-section {
    margin-bottom: 20px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-square {
    width: 24px;
    height: 24px;
    background: #6B46C1;
    border-radius: 6px;
    position: relative;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #6B46C1;
    letter-spacing: -0.5px;
}

/* Company Selector Styles */
.company-selector {
    margin-bottom: 20px;
    position: relative;
}

.company-selector-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}

.company-dropdown-btn:hover {
    border-color: #6B46C1;
    background: #f8f9ff;
}

.current-company {
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s;
}

.company-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.company-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 4px;
}

.company-dropdown.show {
    max-height: 300px;
}

.company-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.company-option:last-child {
    border-bottom: none;
}

.company-option:hover {
    background: #f8f9ff;
}

.company-option.active {
    background: #6B46C1;
    color: white;
}

.company-option.active .company-role {
    color: rgba(255,255,255,0.8);
}

.company-info {
    flex: 1;
}

.company-name {
    font-weight: 500;
    font-size: 14px;
}

.company-role {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.company-option.active .company-role {
    color: rgba(255,255,255,0.8);
}

.check-icon {
    color: #6B46C1;
    font-weight: bold;
    font-size: 16px;
}

.company-option.active .check-icon {
    color: white;
}

.company-option.add-company {
    border-top: 2px solid #e1e5e9;
    background: #f8f9fa;
}

.company-option.add-company:hover {
    background: #e9ecef;
}

.company-option.add-company .company-name {
    color: #6B46C1;
    font-weight: 600;
}

.no-company-message {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 8px 0;
}

.no-company-message p {
    margin: 0;
}

/* Member Profile Styles */
.member-profile {
    max-width: 800px;
    margin: 0 auto;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 24px;
}

.member-info h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #333;
}

.member-role {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: #6B46C1;
    font-size: 14px;
}

.member-email {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.member-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.section-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

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

.project-access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.project-access-item:hover {
    border-color: #6B46C1;
    background: #f8f9ff;
}

.project-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.project-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.project-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #6B46C1;
    border-color: #6B46C1;
}

.project-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.project-stats {
    font-size: 12px;
    color: #666;
}

.task-count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.access-level-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    min-width: 120px;
}

.access-level-select:focus {
    outline: none;
    border-color: #6B46C1;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.member-actions {
    display: flex;
    gap: 12px;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

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

.no-projects {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-projects p {
    margin: 0 0 16px 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    color: #202020;
}

.quick-add-btn {
    width: 100%;
    padding: 8px 12px;
    background: #6B46C1;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.quick-add-btn:hover {
    background: #553C9A;
}

.sidebar-nav {
    padding: 20px 0;
}

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

.nav-title {
    padding: 0 20px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-item:hover {
    background: #f8f8f8;
    color: #202020;
}

.nav-item.active {
    background: #f3f3f3;
    color: #6B46C1;
    font-weight: 500;
}

.nav-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.project-item:hover {
    background: #f8f8f8;
    color: #202020;
}

.project-item.active {
    background: #f3f3f3;
    color: #6B46C1;
    font-weight: 500;
}

.project-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
}

.project-color.red { background: #db4c3f; }
.project-color.orange { background: #ff9500; }
.project-color.yellow { background: #fad000; }
.project-color.green { background: #7ecc49; }
.project-color.blue { background: #4073ff; }
.project-color.purple { background: #884dff; }

.task-count {
    font-size: 12px;
    color: #999;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #202020;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.view-toggle {
    display: flex;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 2px;
}

.view-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: #202020;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logout-btn {
    padding: 6px 12px;
    background: #f8f8f8;
    border: none;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #e8e8e8;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

/* Quick Add Form */
.quick-add-form {
    margin-bottom: 30px;
}

.task-input-container {
    position: relative;
    margin-bottom: 15px;
}

.task-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.task-input:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.task-input::placeholder {
    color: #999;
}

.task-options {
    display: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: -1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.task-options.show {
    display: block;
}

.options-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.option-group {
    flex: 1;
}

.option-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.option-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #6B46C1;
    color: white;
}

.btn-primary:hover {
    background: #553C9A;
}

.btn-secondary {
    background: #f8f8f8;
    color: #666;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* Task List */
.task-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.task-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
    transition: all 0.2s;
    position: relative;
}

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

.task-item:hover {
    background: #fafafa;
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

.task-checkbox:hover {
    border-color: #6B46C1;
}

.task-checkbox.checked {
    background: #6B46C1;
    border-color: #6B46C1;
}

.task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 14px;
    color: #202020;
    margin-bottom: 4px;
    line-height: 1.4;
    word-wrap: break-word;
}

.task-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.task-project {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-date {
    color: #db4c3f;
    font-weight: 500;
}

.task-date.overdue {
    color: #dc3545;
}

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

.priority-indicator {
    width: 6px;
    height: 12px;
    border-radius: 1px;
}

.priority-indicator.p1 { background: #dc3545; }
.priority-indicator.p2 { background: #fd7e14; }
.priority-indicator.p3 { background: #ffc107; }
.priority-indicator.p4 { background: #6c757d; }

.task-actions {
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 8px;
    position: absolute;
    right: 20px;
    top: 16px;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
    font-size: 12px;
}

.action-btn:hover {
    background: #e8e8e8;
    color: #202020;
}

.action-btn.delete:hover {
    background: #dc3545;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: white;
    border-radius: 8px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
}

.empty-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

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

.login-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-square {
    width: 40px;
    height: 40px;
    background: #6B46C1;
    border-radius: 12px;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-dot {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-header h1 {
    color: #202020;
    margin-bottom: 8px;
    font-size: 24px;
}

.login-subtitle {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #6B46C1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #553C9A;
}

.login-hint {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 24px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Register page styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.auth-header p {
    color: #666;
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.auth-footer a {
    color: #6B46C1;
    text-decoration: none;
    font-weight: 600;
}

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

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

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #6B46C1;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: #6B46C1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form .btn-primary:hover {
    background: #553C9A;
}

.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #e8f5e8;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        width: 100%;
    }
    
    .content-header {
        padding: 15px 20px;
    }
    
    .content-area {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .task-item {
        padding: 12px 16px;
    }
    
    .task-actions {
        position: static;
        opacity: 1;
        margin-top: 8px;
    }
}

/* Loading animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-item {
    animation: fadeIn 0.3s ease-out;
}

/* Priority colors for task items */
.task-item.priority-urgent {
    border-left: 3px solid #dc3545;
}

.task-item.priority-high {
    border-left: 3px solid #fd7e14;
}

.task-item.priority-medium {
    border-left: 3px solid #ffc107;
}

.task-item.priority-low {
    border-left: 3px solid #6c757d;
}

/* Kanban Board Styles */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    min-height: 500px;
}

.kanban-column {
    min-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.kanban-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-title {
    font-weight: 600;
    color: #202020;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-count {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.kanban-tasks {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.kanban-task {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.kanban-task:hover {
    background: #f5f5f5;
    border-color: #db4c3f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kanban-task.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.kanban-task-title {
    font-size: 14px;
    color: #202020;
    margin-bottom: 6px;
    line-height: 1.4;
}

.kanban-task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

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

.kanban-task-date {
    color: #db4c3f;
    font-weight: 500;
}

.kanban-task-date.overdue {
    color: #dc3545;
    background: #fee;
    padding: 2px 6px;
    border-radius: 4px;
}

.kanban-add-task {
    margin-top: auto;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
}

.kanban-add-btn {
    width: 100%;
    padding: 8px;
    background: none;
    border: 1px dashed #ddd;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.kanban-add-btn:hover {
    border-color: #db4c3f;
    color: #db4c3f;
    background: #fef7f7;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
    font-size: 14px;
}

.calendar-nav-btn:hover {
    background: #e0e0e0;
    color: #202020;
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #202020;
    min-width: 200px;
    text-align: center;
}

.calendar-view-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 2px;
}

.calendar-view-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}

.calendar-view-btn.active {
    background: white;
    color: #202020;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calendar-container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-right: 1px solid #e0e0e0;
}

.calendar-weekday:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(100px, auto);
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    background: #fafafa;
    color: #ccc;
}

.calendar-day.today {
    background: #fef7f7;
}

.calendar-day-number {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
}

.calendar-day.today .calendar-day-number {
    background: #db4c3f;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-tasks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 80px;
    overflow-y: auto;
}

.calendar-task {
    background: #db4c3f;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.calendar-task:hover {
    background: #c53727;
    transform: scale(1.02);
}

.calendar-task.priority-urgent {
    background: #dc3545;
}

.calendar-task.priority-high {
    background: #fd7e14;
}

.calendar-task.priority-medium {
    background: #ffc107;
    color: #333;
}

.calendar-task.priority-low {
    background: #6c757d;
}

.calendar-task.completed {
    background: #28a745;
    opacity: 0.7;
    text-decoration: line-through;
}

/* Calendar drag and drop styles */
.calendar-day.calendar-drag-over {
    background: #fef7f7 !important;
    border: 2px dashed #db4c3f !important;
}

.calendar-task[draggable="true"] {
    cursor: grab;
}

.calendar-task[draggable="true"]:active {
    cursor: grabbing;
}

/* Inline editing styles */
.task-title-editable {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.task-title-editable:hover {
    background: #f0f0f0;
}

.task-title-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #6B46C1;
    border-radius: 3px;
    font-size: inherit;
    background: white;
}

.task-title-input:focus {
    outline: none;
    border-color: #553C9A;
    box-shadow: 0 0 0 2px rgba(107, 70, 193, 0.2);
}

/* Quick Add Button */
.quick-add-button {
    margin-bottom: 20px;
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #6B46C1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-task-btn:hover {
    background: #553C9A;
    transform: translateY(-1px);
}

.add-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-form {
    padding: 0 24px 24px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.modal-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Task highlight animation */
.task-item.highlight,
.kanban-task.highlight {
    background: #fef7f7 !important;
    border: 2px solid #db4c3f !important;
    transition: all 0.3s ease;
}

/* Task Detail Page Styles */
.priority-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.priority-badge.priority-urgent {
    background: #dc3545;
}

.priority-badge.priority-high {
    background: #fd7e14;
}

.priority-badge.priority-medium {
    background: #ffc107;
    color: #333;
}

.priority-badge.priority-low {
    background: #28a745;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.status-badge.status-todo {
    background: #6c757d;
}

.status-badge.status-in_progress {
    background: #007bff;
}

.status-badge.status-review {
    background: #ffc107;
    color: #333;
}

.status-badge.status-done {
    background: #28a745;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* Week view */
.calendar-week {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    border-top: 1px solid #f0f0f0;
}

.calendar-time-slot {
    padding: 8px;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 11px;
    color: #666;
    text-align: center;
    background: #fafafa;
}

.calendar-week-day {
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
    padding: 4px;
    position: relative;
}

.calendar-week-day.today {
    background: #fef7f7;
}

/* View transitions */
.view-content {
    transition: opacity 0.3s ease;
}

.view-content.hidden {
    display: none;
}

/* Profile and Company Styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-success:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.alert {
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* User avatar in sidebar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #db4c3f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Project color indicators */
.project-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-color.red { background: #ff4757; }
.project-color.orange { background: #ff7f50; }
.project-color.yellow { background: #ffd700; }
.project-color.green { background: #2ed573; }
.project-color.blue { background: #3742fa; }
.project-color.purple { background: #8e44ad; }

/* Action buttons */
.action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn.delete {
    color: #dc3545;
}

.action-btn.delete:hover {
    background: #fff5f5;
}

/* Drag and drop styles */
.drag-over {
    background: #fef7f7 !important;
    border: 2px dashed #db4c3f !important;
}

.kanban-tasks.drag-over {
    background: #fef7f7 !important;
    border: 2px dashed #db4c3f !important;
    border-radius: 8px;
}

.drop-zone {
    min-height: 50px;
    border: 2px dashed transparent;
    border-radius: 6px;
    transition: all 0.2s;
}

.drop-zone.drag-over {
    border-color: #db4c3f;
    background: #fef7f7;
}

/* Mobile responsive for board and calendar */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
        gap: 15px;
    }
    
    .kanban-column {
        min-width: 100%;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-nav {
        order: 2;
    }
    
    .calendar-view-toggle {
        order: 3;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Project Colors */
/* Project color bar (for tasks, sidebar) */
.project-color {
    width: 4px;
    height: 100%;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Project color circle (for project lists) */
.project-color-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 10px;
}

/* Project color circle large (for project headers) */
.project-color-circle-large {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Color variants */
.project-color.red, .project-color-circle.red, .project-color-circle-large.red { 
    background: #dc3545; 
}

.project-color.orange, .project-color-circle.orange, .project-color-circle-large.orange { 
    background: #fd7e14; 
}

.project-color.yellow, .project-color-circle.yellow, .project-color-circle-large.yellow { 
    background: #ffc107; 
}

.project-color.green, .project-color-circle.green, .project-color-circle-large.green { 
    background: #28a745; 
}

.project-color.blue, .project-color-circle.blue, .project-color-circle-large.blue { 
    background: #007bff; 
}

.project-color.purple, .project-color-circle.purple, .project-color-circle-large.purple { 
    background: #6f42c1; 
}

/* Hide mobile elements on desktop */
.mobile-header {
    display: none;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    position: relative;
    background: rgba(107, 70, 193, 0.1);
    color: #374151;
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(107, 70, 193, 0.15);
    border-color: rgba(107, 70, 193, 0.3);
}

.mobile-menu-toggle:active {
    background: rgba(107, 70, 193, 0.2);
}

/* Hamburger icon animation */
.hamburger-icon {
    width: 16px;
    height: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 1.5px;
    background: #374151;
    border-radius: 1px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line {
    background: #6B46C1;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-toggle.active {
    background: rgba(107, 70, 193, 0.2);
    border-color: rgba(107, 70, 193, 0.4);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* Mobile breakpoints */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    /* Mobile header */
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
    }
    
    .mobile-header h1 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
    }
    
    /* Hide mobile menu toggle in header on mobile */
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-content {
        width: 100%;
        min-width: 100%;
        padding: 66px 16px 90px 16px;
    }
    
    /* Mobile task cards */
    .task-item {
        margin-bottom: 12px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .task-content {
        padding: 12px;
    }
    
    .task-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .task-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    
    /* Mobile view tabs */
    .view-tabs {
        display: flex;
        overflow-x: auto;
        margin-bottom: 20px;
        border-bottom: 1px solid #e8e8e8;
        -webkit-overflow-scrolling: touch;
    }
    
    .view-tab {
        flex-shrink: 0;
        padding: 12px 16px;
        border-bottom: 2px solid transparent;
        color: #666;
        text-decoration: none;
        white-space: nowrap;
    }
    
    .view-tab.active {
        color: #6B46C1;
        border-bottom-color: #6B46C1;
    }
    
    /* Mobile filters */
    .mobile-filters {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        border: 1px solid #ddd;
        border-radius: 20px;
        background: white;
        color: #666;
        text-decoration: none;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .mobile-filter-btn.active {
        background: #6B46C1;
        color: white;
        border-color: #6B46C1;
    }
    
    /* Mobile add task button */
    .mobile-add-task {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #6B46C1;
        color: white;
        border: none;
        font-size: 24px;
        font-weight: 400;
        box-shadow: 0 4px 16px rgba(107, 70, 193, 0.25);
        z-index: 100;
        cursor: pointer;
        transition: all 0.2s ease;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .mobile-add-task:hover {
        background: #553C9A;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(107, 70, 193, 0.3);
    }
    
    .mobile-add-task:active {
        transform: translateY(0px);
        box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
    }
    
    /* Pulse animation for add button */
    @keyframes pulse {
        0% {
            box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
        }
        50% {
            box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4), 0 0 0 10px rgba(107, 70, 193, 0.1);
        }
        100% {
            box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4), 0 0 0 20px rgba(107, 70, 193, 0);
        }
    }
    
    .mobile-add-task.pulse {
        animation: pulse 2s infinite;
    }
    
    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        z-index: 1000;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-bottom-nav.show {
        display: flex;
    }
    
    .bottom-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 12px;
        text-decoration: none;
        color: #6b7280;
        font-size: 12px;
        font-weight: 500;
        transition: all 0.2s ease;
        min-width: 60px;
        cursor: pointer;
    }
    
    .bottom-nav-item:hover,
    .bottom-nav-item.active {
        color: #6B46C1;
        background: rgba(107, 70, 193, 0.1);
    }
    
    .bottom-nav-icon {
        font-size: 20px;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }
    
    .bottom-nav-item:hover .bottom-nav-icon,
    .bottom-nav-item.active .bottom-nav-icon {
        transform: scale(1.1);
    }
    
    .bottom-nav-label {
        font-size: 10px;
        line-height: 1;
    }
    
    /* Bottom nav animations */
    @keyframes bottomNavSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .mobile-bottom-nav {
        animation: bottomNavSlideUp 0.3s ease-out;
    }
    

    
    /* Mobile Company Dropdown */
    .mobile-company-dropdown {
        display: none;
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .mobile-company-dropdown.show {
        display: block;
        animation: slideUpFade 0.3s ease-out;
    }
    
    .company-dropdown-content {
        background: white;
        margin: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        max-height: 400px;
        overflow: hidden;
    }
    
    .company-dropdown-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 16px 16px 0 0;
    }
    
    .company-dropdown-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
    }
    
    .close-dropdown {
        background: none;
        border: none;
        font-size: 20px;
        color: #6b7280;
        cursor: pointer;
        padding: 4px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .close-dropdown:hover {
        background: #e5e7eb;
        color: #374151;
    }
    
    .company-list {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .company-item {
        display: flex;
        flex-direction: column;
        padding: 16px 20px;
        text-decoration: none;
        color: #374151;
        border-bottom: 1px solid #f3f4f6;
        transition: all 0.2s ease;
    }
    
    .company-item:hover {
        background: #f9fafb;
    }
    
    .company-item.active {
        background: rgba(107, 70, 193, 0.1);
        color: #6B46C1;
    }
    
    .company-item:last-child {
        border-bottom: none;
    }
    
    .company-name {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .company-role {
        font-size: 14px;
        color: #6b7280;
    }
    
    .company-item.active .company-role {
        color: #6B46C1;
    }
    
    .company-menu-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 8px 20px;
    }
    
    .company-item.company-manage-item {
        color: #6b7280;
        font-style: italic;
    }
    
    .company-item.company-manage-item:hover {
        background: #f3f4f6;
        color: #374151;
    }
    
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile Profile Menu */
    .mobile-profile-menu {
        display: none;
        position: fixed;
        bottom: 70px;
        left: 0;
        right: 0;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .mobile-profile-menu.show {
        display: block;
        animation: slideUpFade 0.3s ease-out;
    }
    
    .profile-menu-content {
        background: white;
        margin: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    
    .profile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
        color: white;
    }
    
    .profile-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .profile-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 600;
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .profile-details {
        display: flex;
        flex-direction: column;
    }
    
    .profile-name {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 2px;
    }
    
    .profile-email {
        font-size: 14px;
        opacity: 0.9;
    }
    
    .profile-menu-header .close-dropdown {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .profile-menu-header .close-dropdown:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .profile-menu-items {
        padding: 0;
    }
    
    .profile-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        text-decoration: none;
        color: #374151;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .profile-menu-item:hover {
        background: #f9fafb;
    }
    
    .profile-menu-item:last-child {
        border-bottom: none;
    }
    
    .profile-menu-icon {
        font-size: 18px;
        width: 24px;
        text-align: center;
    }
    
    .profile-menu-text {
        font-size: 16px;
        font-weight: 500;
    }
    
    .profile-menu-divider {
        height: 1px;
        background: #e5e7eb;
        margin: 8px 20px;
    }
    
    .profile-menu-item.logout-item {
        color: #dc2626;
    }
    
    .profile-menu-item.logout-item:hover {
        background: rgba(220, 38, 38, 0.05);
        color: #dc2626;
    }
    
    .profile-menu-item.logout-item .profile-menu-icon {
        color: #dc2626;
    }
    
    /* Mobile Kanban Board */
    .kanban-board {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .kanban-column {
        flex-shrink: 0;
        width: 280px;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
    }
    
    .kanban-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
        color: #333;
        text-align: center;
    }
    
    .kanban-task {
        background: white;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        cursor: pointer;
        touch-action: pan-y;
    }
    
    .kanban-task:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .kanban-task-title {
        font-weight: 500;
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.3;
    }
    
    .kanban-task-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #666;
    }
    
    .kanban-task-priority {
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 500;
    }
    
    .kanban-task-priority.high {
        background: #fee2e2;
        color: #dc2626;
    }
    
    .kanban-task-priority.medium {
        background: #fef3c7;
        color: #d97706;
    }
    
    .kanban-task-priority.low {
        background: #dcfce7;
        color: #16a34a;
    }
    
    /* Mobile Calendar */
    .calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .calendar-nav-btn {
        background: #6B46C1;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 14px;
        cursor: pointer;
    }
    
    .calendar-nav-btn:hover {
        background: #553C9A;
    }
    
    .calendar-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }
    
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 1px;
        background: #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
        min-width: 320px;
    }
    
    .calendar-day-header {
        background: #f3f4f6;
        padding: 8px 4px;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }
    
    .calendar-day {
        background: white;
        min-height: 80px;
        padding: 4px;
        position: relative;
        cursor: pointer;
    }
    
    .calendar-day:hover {
        background: #f9fafb;
    }
    
    .calendar-day.other-month {
        background: #f9fafb;
        color: #9ca3af;
    }
    
    .calendar-day.today {
        background: #eff6ff;
        border: 2px solid #3b82f6;
    }
    
    .calendar-day-number {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 2px;
    }
    
    .calendar-tasks {
        max-height: 60px;
        overflow-y: auto;
    }
    
    .calendar-task {
        background: #6B46C1;
        color: white;
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 10px;
        margin-bottom: 2px;
        cursor: pointer;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }
    
    .calendar-task:hover {
        background: #553C9A;
    }
    
    /* Mobile Modals */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .modal-header h3 {
        font-size: 18px;
        margin: 0;
    }
    
    .modal-close {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
    
    .modal-form {
        padding: 15px;
    }
    
    .modal-form .form-group {
        margin-bottom: 15px;
    }
    
    .modal-form label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .modal-form input,
    .modal-form textarea,
    .modal-form select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        border-radius: 8px;
    }
    
    .modal-actions {
        padding: 15px;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Show mobile bottom nav on mobile */
    .mobile-bottom-nav {
        display: flex !important;
    }
    
    /* Show mobile add button on mobile */
    .mobile-add-task {
        display: flex !important;
        bottom: 90px;
    }
    
    /* Hide desktop add button on mobile */
    .quick-add-button,
    .add-task-btn {
        display: none !important;
    }
    
    /* Mobile Project Pages */
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .project-info {
        width: 100%;
    }
    
    .project-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .project-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Mobile Company Management */
    .company-management {
        padding: 15px;
    }
    
    .company-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .company-section {
        padding: 15px;
    }
    
    .member-item,
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .member-actions,
    .project-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .member-actions .btn,
    .project-actions .btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Mobile Project List */
    .project-list {
        padding: 15px;
    }
    
    .project-card {
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .project-card-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .project-card-actions .btn {
        flex: 1;
        min-width: 100px;
    }
    
    /* Mobile Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Mobile Touch Drag & Drop */
    .drop-highlight {
        background-color: rgba(107, 70, 193, 0.1) !important;
        border: 2px dashed #6B46C1 !important;
        transform: scale(1.02);
        transition: all 0.2s ease;
    }
    
    .dragging {
        opacity: 0.8;
        transform: scale(1.05);
        z-index: 1000;
        pointer-events: none;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .kanban-column {
        width: 240px;
    }
    
    .calendar-grid {
        min-width: 600px;
    }
}