/* Responsive styles for Communication Tab */

/* Default spacing for larger windows */
.communication-tab-content[data-tab-type="communication"] {
    padding: 20px;
    gap: 20px;
}

/* Intermediate breakpoint for medium-large windows */
@media (max-width: 1100px) {
    .communication-tab-content .left-column {
        flex: 0 0 38% !important;  /* Slightly reduce from 40% */
    }
    
    .communication-tab-content .note-form-container {
        padding: 0.75rem;  /* Reduce padding */
    }
    
    .communication-tab-content .note-input {
        min-height: 60px;  /* Reduce minimum height */
        padding: 0.5rem;
    }
}

/* Medium windows - reduce spacing */
@media (max-width: 1400px) {
    .communication-tab-content[data-tab-type="communication"] {
        padding: 15px;
        gap: 15px;
    }
    
    .communication-tab-content .exhibitor-info-card,
    .communication-tab-content .reminders-section,
    .communication-tab-content .add-note-section {
        padding: 15px;
    }
    
    .communication-tab-content .communication-history-section {
        padding: 15px;
    }
    
    .communication-tab-content .note-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .communication-tab-content .reminder-item {
        padding: 8px;
        margin-bottom: 8px;
    }
}

/* Small windows - minimize spacing */
@media (max-width: 1200px) {
    .communication-tab-content[data-tab-type="communication"] {
        padding: 10px;
        gap: 10px;
    }
    
    .communication-tab-content .exhibitor-info-card,
    .communication-tab-content .reminders-section,
    .communication-tab-content .add-note-section {
        padding: 12px;
    }
    
    .communication-tab-content .communication-history-section {
        padding: 12px;
    }
    
    .communication-tab-content .exhibitor-info-card h5,
    .communication-tab-content .reminders-section h5,
    .communication-tab-content .add-note-section h5,
    .communication-tab-content .communication-history-section h5 {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }
    
    .communication-tab-content .note-item {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .communication-tab-content .reminder-item {
        padding: 6px 8px;
        margin-bottom: 6px;
    }
    
    .communication-tab-content .info-grid {
        gap: 8px;
    }
    
    .communication-tab-content .info-item {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    /* Reduce button sizes */
    .communication-tab-content .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Reduce textarea height */
    .communication-tab-content #new-note {
        min-height: 60px;
    }
}

/* Very small windows - maximize content space */
@media (max-width: 1000px) {
    .communication-tab-content[data-tab-type="communication"] {
        padding: 8px;
        gap: 8px;
    }
    
    .communication-tab-content .exhibitor-info-card,
    .communication-tab-content .reminders-section,
    .communication-tab-content .add-note-section {
        padding: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .communication-tab-content .communication-history-section {
        padding: 10px;
    }
    
    .communication-tab-content .exhibitor-info-card h5,
    .communication-tab-content .reminders-section h5,
    .communication-tab-content .add-note-section h5,
    .communication-tab-content .communication-history-section h5 {
        margin-bottom: 8px;
        font-size: 1rem;
    }
    
    /* Compact exhibitor info */
    .communication-tab-content .info-item strong {
        font-size: 0.8rem;
    }
    
    .communication-tab-content .info-item > div {
        font-size: 0.9rem;
    }
    
    /* Even more compact reminders */
    .communication-tab-content .reminder-item {
        padding: 5px 6px;
        margin-bottom: 5px;
    }
    
    .communication-tab-content .reminder-item strong {
        font-size: 0.85rem;
    }
    
    .communication-tab-content .reminder-item small {
        font-size: 0.75rem;
    }
    
    /* Compact notes */
    .communication-tab-content .note-item {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .communication-tab-content .author-name {
        font-size: 0.8rem;
    }
    
    .communication-tab-content .note-date {
        font-size: 0.7rem;
    }
    
    .communication-tab-content .note-content {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Responsive column layout adjustments */
@media (max-width: 900px) {
    .communication-tab-content .left-column {
        flex: 0 0 35% !important;  /* Reduce from 40% to save space */
        min-width: 180px !important;  /* Further reduced minimum */
    }
    
    .communication-tab-content .right-column {
        min-width: 200px !important;  /* Reduced minimum */
    }
}

@media (max-width: 768px) {
    /* Stack columns vertically only on very narrow windows */
    .communication-tab-content[data-tab-type="communication"] {
        flex-direction: column !important;
    }
    
    .communication-tab-content .left-column {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-height: 40vh;
        min-width: auto !important;
    }
    
    .communication-tab-content .right-column {
        width: 100% !important;
        min-width: auto !important;
        flex: 1;
    }
}