        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 15px;
            font-size: 14px;
        }

        .container {
            max-width: 1600px;
            margin: 0 auto;
        }

        .login-screen {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 80vh;
        }

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

        .login-card h1 {
            color: #667eea;
            margin-bottom: 8px;
            font-size: 26px;
        }

        .login-card p {
            color: #666;
            margin-bottom: 25px;
            font-size: 13px;
        }

        .input-group {
            margin-bottom: 16px;
        }

        .input-group label {
            display: block;
            margin-bottom: 6px;
            color: #333;
            font-weight: 500;
            font-size: 13px;
        }

        .input-group input, .input-group select, .input-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .input-group input:focus, .input-group select:focus, .input-group textarea:focus {
            outline: none;
            border-color: #667eea;
        }

        .btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-secondary {
            background: white;
            color: #667eea;
            border: 1px solid #667eea;
        }

        .btn-small {
            padding: 6px 12px;
            font-size: 13px;
        }

        .btn-danger {
            background: #dc3545;
        }

        .btn-full {
            width: 100%;
        }

        .dashboard {
            display: none;
        }

        .dashboard.active {
            display: block;
        }

        .header {
            background: white;
            padding: 12px 20px;
            border-radius: 10px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .header h1 {
            color: #667eea;
            font-size: 20px;
        }

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

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 600;
        }

        .main-content {
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 15px;
        }

        .sidebar {
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            height: fit-content;
        }

        .sidebar h2 {
            color: #333;
            margin-bottom: 12px;
            font-size: 16px;
        }

        .project-list {
            list-style: none;
        }

        .project-item {
            padding: 10px;
            margin-bottom: 6px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
        }

        .project-item:hover {
            background: #f8f9ff;
        }

        .project-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
        }

        .project-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 3px;
        }

        .project-meta {
            font-size: 11px;
            opacity: 0.7;
        }

        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #dc3545;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
            border: 2px solid white;
        }

        .project-item {
            position: relative;
        }

        .task-card {
            position: relative;
        }

        .content-area {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            min-height: 600px;
        }

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

        .project-header h2 {
            color: #333;
            font-size: 20px;
        }

        .task-list {
            margin-bottom: 20px;
        }

        .task-item {
            background: #f8f9ff;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 10px;
            border-left: 3px solid #667eea;
            cursor: pointer;
            transition: all 0.2s;
        }

        .task-item:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transform: translateX(3px);
        }

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

        .task-title {
            font-weight: 600;
            font-size: 15px;
            color: #333;
        }

        .status-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .status-opened {
            background: #ffeaa7;
            color: #d63031;
        }

        .status-pending {
            background: #74b9ff;
            color: #0984e3;
        }

        .status-resolved {
            background: #55efc4;
            color: #00b894;
        }

        .task-description {
            color: #666;
            font-size: 13px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            padding: 25px;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
        }

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

        .modal-header h2 {
            margin: 0;
            color: #333;
            font-size: 18px;
        }

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

        .modal-close:hover {
            background: #f0f0f0;
            color: #333;
        }

        .modal-body {
            margin-top: 15px;
        }

        .modal-content h2 {
            margin-bottom: 20px;
            color: #333;
            font-size: 18px;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .mockup-view {
            position: relative;
            margin-top: 20px;
        }

        .mockup-container {
            position: relative;
            display: inline-block;
            max-width: 100%;
        }

        .mockup-image {
            max-width: 100%;
            display: block;
            border-radius: 8px;
        }

        .canvas-overlay {
            position: absolute;
            top: 0;
            left: 0;
            cursor: crosshair;
            pointer-events: all;
        }

        .annotation-bubble {
            position: absolute;
            width: 28px;
            height: 28px;
            background: #667eea;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
            cursor: pointer;
            transform: translate(-50%, -50%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.2s;
            z-index: 10;
        }

        .annotation-bubble:hover {
            transform: translate(-50%, -50%) scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .annotation-bubble.resolved {
            background: #55efc4;
            color: #00b894;
        }

        .annotation-popup {
            position: absolute;
            background: white;
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            min-width: 300px;
            max-width: 400px;
            z-index: 100;
            display: none;
        }

        .annotation-popup.active {
            display: block;
        }

        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }

        .popup-title {
            font-weight: 600;
            font-size: 14px;
            color: #333;
        }

        .popup-actions {
            display: flex;
            gap: 6px;
        }

        .icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            transition: background 0.2s;
        }

        .icon-btn:hover {
            background: #f0f0f0;
        }

        .messages-list {
            max-height: 250px;
            overflow-y: auto;
            margin-bottom: 10px;
        }

        .message-item {
            margin-bottom: 10px;
            padding: 8px;
            background: #f8f9ff;
            border-radius: 6px;
        }

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

        .message-author {
            font-weight: 600;
            font-size: 12px;
        }

        .message-author.designer {
            color: #667eea;
        }

        .message-author.client {
            color: #e74c3c;
        }

        .message-actions {
            display: flex;
            gap: 4px;
        }

        .message-text {
            font-size: 13px;
            color: #333;
        }

        .message-time {
            font-size: 10px;
            color: #999;
            margin-top: 4px;
        }

        .message-input-group {
            display: flex;
            gap: 8px;
        }

        .message-input-group textarea {
            flex: 1;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 13px;
            resize: vertical;
            min-height: 60px;
        }

        .toolbar {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
            padding: 10px;
            background: #f8f9ff;
            border-radius: 6px;
        }

        .tool-btn {
            padding: 8px 15px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .tool-btn:hover {
            background: #f0f0f0;
        }

        .tool-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .color-picker-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .color-picker-group label {
            font-size: 13px;
            color: #333;
        }

        .color-picker-group input[type="color"] {
            border: none;
            cursor: pointer;
            width: 40px;
            height: 32px;
            border-radius: 4px;
        }

        .drawing-list {
            margin-top: 15px;
        }

        .drawing-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            background: #f8f9ff;
            border-radius: 6px;
            margin-bottom: 6px;
        }

        .drawing-info {
            font-size: 12px;
            color: #666;
        }

        /* Admin Panel Styles */
        .admin-panel {
            display: none;
        }

        .admin-panel.active {
            display: block;
        }

        .admin-section {
            margin-bottom: 25px;
        }

        .admin-section h3 {
            font-size: 16px;
            color: #333;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 2px solid #667eea;
        }

        .client-card {
            background: #f8f9ff;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 12px;
            border-left: 3px solid #667eea;
        }

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

        .client-name {
            font-weight: 600;
            font-size: 15px;
            color: #333;
        }

        .client-key {
            font-family: monospace;
            background: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            color: #666;
            border: 1px solid #ddd;
        }

        .client-users {
            margin-top: 10px;
            padding-left: 15px;
        }

        .client-user-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            font-size: 13px;
        }

        .settings-panel {
            background: #f8f9ff;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }

        .settings-group {
            margin-bottom: 15px;
        }

        .settings-group label {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
            font-weight: 500;
        }

        .file-upload-area {
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .file-upload-area:hover {
            border-color: #667eea;
            background: #f8f9ff;
        }

        .file-upload-area.drag-over {
            border-color: #667eea;
            background: #f0f4ff;
        }

        .upload-icon {
            font-size: 40px;
            color: #667eea;
            margin-bottom: 10px;
        }

        .upload-text {
            font-size: 14px;
            color: #666;
        }

        .mockup-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }

        .mockup-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mockup-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .mockup-thumbnail {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }

        .mockup-card-info {
            padding: 10px;
            background: #f8f9ff;
        }

        .mockup-card-title {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }

        .mockup-card-actions {
            display: flex;
            gap: 6px;
            margin-top: 8px;
        }

        .tab-navigation {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }

        .tab-btn {
            padding: 10px 20px;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #666;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
            margin-bottom: -2px;
        }

        .tab-btn:hover {
            color: #667eea;
        }

        .tab-btn.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .tab-content {
            display: none;
        }

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

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .empty-state-text {
            font-size: 16px;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }

        .team-member-card {
            background: #f8f9ff;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 12px;
            border-left: 3px solid #667eea;
        }

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

        .team-member-info {
            flex: 1;
        }

        .team-member-name {
            font-weight: 600;
            font-size: 15px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .team-member-avatar {
            font-size: 20px;
        }

        .team-member-details {
            font-size: 12px;
            color: #666;
            margin-top: 4px;
        }

        .admin-badge {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 600;
            margin-left: 8px;
        }

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

        .access-key-display {
            margin-top: 8px;
            padding: 8px;
            background: white;
            border-radius: 6px;
            border: 1px solid #ddd;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Courier New', monospace;
        }

        .access-key-text {
            flex: 1;
            font-size: 12px;
            color: #667eea;
            font-weight: 600;
        }

        .key-action-btn {
            padding: 4px 10px;
            font-size: 11px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .key-action-btn:hover {
            background: #5568d3;
        }

        .company-item {
            background: white;
            padding: 0;
            border-radius: 8px;
            margin-bottom: 10px;
            border: 1px solid #e0e0e0;
            overflow: hidden;
            transition: all 0.2s;
        }

        .company-item:hover {
            border-color: #667eea;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
        }

        .company-header {
            padding: 12px 15px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f8f9ff;
            transition: all 0.2s;
        }

        .company-header:hover {
            background: #e8edff;
        }

        .company-expand-icon {
            display: inline-block;
            transition: transform 0.3s;
            font-size: 12px;
            color: #667eea;
            width: 16px;
        }

        .company-expand-icon.expanded {
            transform: rotate(90deg);
        }

        .company-name {
            font-weight: 600;
            font-size: 14px;
            color: #333;
        }

        .company-meta {
            font-size: 11px;
            color: #999;
            font-weight: normal;
        }

        .company-projects {
            display: none;
            padding: 8px;
            background: white;
        }

        .company-projects.expanded {
            display: block;
        }

        .company-project-item {
            padding: 10px 12px;
            background: #f8f9ff;
            border-radius: 6px;
            margin-bottom: 6px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .company-project-item:hover {
            background: #e8edff;
            border-color: #667eea;
            transform: translateX(3px);
        }

        .company-project-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
        }

        .company-project-item.active:hover {
            transform: translateX(3px);
        }

        /* Project Assignment Checkboxes */
        .client-checkbox-container {
            margin-bottom: 12px;
            padding: 12px;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            background: #f8f9ff;
        }

        .client-checkbox-container label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 600;
            color: #333;
            cursor: pointer;
        }

        .client-users-list {
            margin-left: 24px;
            margin-top: 8px;
            padding-left: 12px;
            border-left: 2px solid #ddd;
        }

        .client-user-item {
            margin-bottom: 6px;
        }

        .client-user-item label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: #666;
            cursor: pointer;
        }

        .client-user-item input[type="checkbox"] {
            cursor: pointer;
        }

        .client-checkbox-container input[type="checkbox"] {
            cursor: pointer;
            width: 16px;
            height: 16px;
        }
