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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Profile Container */
.profile-container {
    display: flex;
    height: 100vh;
}

/* Sidebar - Reusing from dashboard */
.sidebar {
    width: 240px;
    background: #f5f4f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
}

.sidebar-header {
    padding: 24px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.logo-arabic {
    font-size: 16px;
    color: #716d52;
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #e8e7e3;
    color: #1a1a1a;
}

.nav-item.active {
    background: #e8e7e3;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
}

.nav-item.support {
    margin-bottom: 16px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-bottom: 16px;
    color: #666;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #e8e7e3;
    border-radius: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.user-role {
    font-size: 12px;
    color: #666;
}

.dropdown-icon {
    color: #666;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Content Header */
.content-header {
    padding: 20px 48px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.content-header h1 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    z-index: 10;
    flex-wrap: nowrap;
    height: 40px;
}


.edit-btn,
.add-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.edit-btn {
    background: white;
    border: 1px solid #e5e5e5;
    color: #1a1a1a;
}

.edit-btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}


/* Company Info Section */
.company-info-section {
    padding: 32px 48px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.company-logo-wrapper {
    flex-shrink: 0;
}

.company-logo {
    width: 100px;
    height: 100px;
    background: #e2f699;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo svg {
    width: 40px;
    height: 40px;
    color: #1a1a1a;
}

.company-details h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.badge,
.founded {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.badge svg,
.founded svg {
    width: 16px;
    height: 16px;
}

/* Tabs */
.profile-tabs {
    padding: 0 48px;
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.tab {
    padding: 16px 0;
    border: none;
    background: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab:hover {
    color: #1a1a1a;
}

.tab.active {
    color: #1a1a1a;
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a1a1a;
}

/* Content Sections */
.content-section {
    padding: 32px 48px;
}

.content-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.overview-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    max-width: 900px;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 48px;
}

.detail-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.detail-group p {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Projects Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-link {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 240px;
    background: #f5f4f0;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.project-client {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.project-location {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.project-value {
    font-weight: 600;
    color: #716d52;
}

/* Project List Styles */
.project-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.project-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.project-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.btn-icon:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.btn-icon.btn-danger:hover {
    background: #fee;
    border-color: #f00;
    color: #f00;
}

.project-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.project-value {
    font-size: 16px;
    font-weight: 500;
    color: #95b70f;
}

.project-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.project-details p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.project-client,
.project-location,
.project-dates {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-description {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 12px 0;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e2f699;
    color: #716d52;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.add-project-btn {
    background: #1a1a1a;
    border: none;
    color: white;
}

.add-project-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add Project Button in content - Pill Shape */
#add-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #95b70f;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#add-project-btn:hover {
    background-color: #7a9a0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(149, 183, 15, 0.3);
}

#add-project-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 1400px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .nav-item span,
    .user-info,
    .dropdown-icon,
    .logo-arabic {
        display: none;
    }
    
    .content-header,
    .company-info-section,
    .profile-tabs,
    .content-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .edit-btn span,
    .add-project-btn span {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

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

.modal-close:hover {
    background: #f5f4f0;
    color: #1a1a1a;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 160px); /* Account for header and footer */
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background-color: #f8f8f8;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #95b70f;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(149, 183, 15, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* Form section styles for modals */
.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background-color: #f8f8f8;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-section textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
    outline: none;
    border-color: #95b70f;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(149, 183, 15, 0.1);
}

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

.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.file-upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    transition: color 0.2s;
}

.file-upload-label:hover {
    color: #1a1a1a;
}

.file-upload-label svg {
    width: 32px;
    height: 32px;
}

.file-hint {
    font-size: 12px;
    color: #999;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f4f0;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview-item:hover .image-preview-remove {
    opacity: 1;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f5f4f0;
    border-color: #d0d0d0;
    color: #1a1a1a;
}

/* Project Cards */
.project-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.project-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f4f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.project-client {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.project-location {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

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

.project-value {
    font-weight: 500;
    color: #666;
}

/* Notification styling specific to company profile page */
.header-actions .notification-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 0 12px;
    padding: 0;
    height: 40px;
}

.header-actions .notification-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
    padding: 0;
    transform: translateY(-14px);
}

.notification-btn:hover {
    border-color: #d0d0d0;
    background: #f8f8f8;
}

.notification-btn svg {
    width: 20px;
    height: 20px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Fix modal scrolling */
.modal-overlay {
    overflow-y: auto !important;
}

.modal-container {
    margin: 40px auto !important;
}
/* New sections for vendor signup fields */
.sectors-services-grid,
.approvals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.detail-group.full-width {
    grid-column: 1 / -1;
}

.detail-group label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.detail-group p {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 400;
}

.detail-group p.multiline-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Tags container for sectors */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sector-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f4f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
}

.empty-state {
    color: #999;
    font-style: italic;
}
