/**
 * CRM Modülü Stilleri
 * CRM Module Styles
 */

/* Relationship Cards */
.crm-relationship-card {
    border: 2px solid #000;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 2px 2px 0 #000;
}

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

.crm-relationship-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.crm-relationship-type {
    font-size: 12px;
    padding: 4px 8px;
    background: #f0f0f0;
    border: 1px solid #000;
}

.crm-relationship-body {
    margin-bottom: 12px;
}

.crm-relationship-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.crm-strength-label {
    font-size: 12px;
    font-weight: 500;
}

.crm-strength-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border: 1px solid #000;
    position: relative;
}

.crm-strength-fill {
    height: 100%;
    background: #000;
    transition: width 0.3s ease;
}

.crm-strength-value {
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
}

.crm-relationship-meta {
    display: flex;
    gap: 8px;
}

.crm-status {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #000;
}

.crm-status-active {
    background: #90ee90;
}

.crm-status-passive {
    background: #d3d3d3;
}

.crm-status-problematic {
    background: #ff6b6b;
    color: #fff;
}

.crm-status-ended {
    background: #808080;
    color: #fff;
}

.crm-priority {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #000;
}

.crm-priority-low {
    background: #e0e0e0;
}

.crm-priority-medium {
    background: #ffd700;
}

.crm-priority-high {
    background: #ff8c00;
}

.crm-priority-critical {
    background: #ff0000;
    color: #fff;
}

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

.crm-relationship-actions button {
    padding: 6px 12px;
    border: 2px solid #000;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.crm-relationship-actions button:hover {
    background: #000;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 #000;
}

/* Interaction Cards */
.crm-interaction-card {
    border: 2px solid #000;
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 2px 2px 0 #000;
}

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

.crm-interaction-type {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #000;
}

.crm-interaction-type-email {
    background: #4a90e2;
    color: #fff;
}

.crm-interaction-type-phone {
    background: #50c878;
    color: #fff;
}

.crm-interaction-type-meeting {
    background: #ff6b6b;
    color: #fff;
}

.crm-interaction-type-document {
    background: #ffa500;
    color: #fff;
}

.crm-interaction-date {
    font-size: 11px;
    color: #666;
}

.crm-interaction-body h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.crm-interaction-body p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
}

.crm-outcome {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #000;
    display: inline-block;
}

.crm-outcome-positive {
    background: #90ee90;
}

.crm-outcome-neutral {
    background: #d3d3d3;
}

.crm-outcome-negative {
    background: #ff6b6b;
    color: #fff;
}

.crm-outcome-pending {
    background: #ffd700;
}

.crm-interaction-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.crm-interaction-actions button {
    padding: 6px 12px;
    border: 2px solid #000;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.crm-interaction-actions button:hover {
    background: #000;
    color: #fff;
}

/* Empty State */
.crm-empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #666;
    font-size: 14px;
}

/* Filters */
.crm-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f8f8;
    border: 2px solid #000;
}

.crm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crm-filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.crm-filter-group select,
.crm-filter-group input {
    padding: 6px 8px;
    border: 2px solid #000;
    background: #fff;
    font-size: 12px;
}

/* CRM Dashboard */
.crm-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.crm-dashboard-card {
    border: 2px solid #000;
    background: #fff;
    padding: 16px;
    box-shadow: 2px 2px 0 #000;
}

.crm-dashboard-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.crm-dashboard-card .crm-metric-value {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0;
}

.crm-dashboard-card .crm-metric-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

/* Network Graph Container */
.crm-network-container {
    border: 2px solid #000;
    background: #fff;
    padding: 16px;
    margin-bottom: 24px;
    min-height: 400px;
}

/* Timeline */
.crm-timeline {
    border: 2px solid #000;
    background: #fff;
    padding: 16px;
}

/* Mini Cards for Team Section */
.crm-relationship-mini-card {
    border: 1px solid #000;
    background: #fff;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 11px;
}

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

.crm-relationship-mini-type {
    font-weight: 600;
    font-size: 10px;
}

.crm-interaction-mini-card {
    border: 1px solid #000;
    background: #fff;
    padding: 8px;
    margin-bottom: 6px;
    font-size: 11px;
}

.crm-section {
    margin-top: 24px;
    padding-top: 16px;
}

.btn-crm-relationship,
.btn-crm-interaction,
.btn-crm-professional {
    padding: 2px 4px;
    font-size: 8px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    min-width: auto;
}

.btn-crm-relationship:hover,
.btn-crm-interaction:hover,
.btn-crm-professional:hover {
    background: #000;
    color: #fff;
}

.crm-loading {
    text-align: center;
    padding: 12px;
    font-size: 11px;
    color: #666;
}

/* Project Team Member Actions */
.project-team-member-actions {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    overflow: visible !important;
}

.project-external-contact-actions {
    display: flex !important;
    gap: 4px !important;
    margin-top: 8px !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    overflow: visible !important;
}

/* Ensure buttons are visible */
.btn-crm-relationship,
.btn-crm-interaction,
.btn-crm-professional {
    padding: 3px 6px !important;
    font-size: 9px !important;
    border: 1px solid #000 !important;
    background: #fff !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
    min-width: 32px !important;
    margin: 0 !important;
    text-decoration: none !important;
    color: #000 !important;
    position: relative !important;
    z-index: 1 !important;
    white-space: nowrap !important;
}

.btn-crm-relationship:hover,
.btn-crm-interaction:hover,
.btn-crm-professional:hover {
    background: #000 !important;
    color: #fff !important;
}

/* CRM Section Visibility */
.crm-section {
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 2px solid #000 !important;
    display: block !important;
    visibility: visible !important;
}

.crm-relationships-mini,
.crm-interactions-mini {
    display: block !important;
    visibility: visible !important;
}

.crm-timeline-item {
    padding: 12px;
    border-left: 3px solid #000;
    margin-bottom: 12px;
    position: relative;
}

.crm-timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 16px;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

.crm-timeline-date {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.crm-timeline-content {
    font-size: 13px;
}

