/* Communications Page Styles - Based on Figma Design */

.communications-container {
    min-height: 100vh;
    background-color: #ffffff;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.communications-content-panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    position: relative;
    width: 100%;
    height: 100%;
}

.communications-header-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    width: 1054px;
    flex-shrink: 0;
}

.communications-title-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    flex-shrink: 0;
}

.communications-title-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    flex-shrink: 0;
}

.communications-title-text {
    display: flex;
    flex-direction: column;
    font-family: 'arizona_flare_medium', serif;
    justify-content: center;
    line-height: 1.2;
    position: relative;
    flex-shrink: 0;
    font-size: 48px;
    color: #000000;
    white-space: nowrap;
}

.communications-title {
    margin: 0;
    line-height: 1.2;
    white-space: pre;
}

.communications-main-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.connections-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.connections-title {
    font-family: 'gilroy_medium', sans-serif;
    line-height: 1;
    position: relative;
    flex-shrink: 0;
    font-size: 20px;
    color: #000000;
    white-space: nowrap;
    margin: 0;
}

.connections-card {
    background: #f0f7ff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 60px 160px;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    width: 1054px;
}

/* Connected state row: compact, clear, neutral background */
.connections-connected-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    padding: 16px 20px;
    box-sizing: border-box;
}

.connections-connected-row .connected-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connections-connected-row .connected-copy {
    display: flex;
    flex-direction: column;
}

.connections-connected-row .connected-title {
    font-family: 'gilroy_semibold', sans-serif;
    font-size: 16px;
    color: #0F172A;
}

.connections-connected-row .connected-subtitle {
    font-family: 'gilroy_medium', sans-serif;
    font-size: 13px;
    color: #475569;
}

.connections-card-content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 33px;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.connections-card-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    flex-shrink: 0;
    width: 100%;
}

.connections-content-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.connections-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.connection-icon-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.connection-icon {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.icon-container {
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    border-radius: 50%;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.icon-image img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.connections-description {
    font-family: 'gilroy_medium', sans-serif;
    line-height: 1.4;
    position: relative;
    flex-shrink: 0;
    font-size: 20px;
    color: #000000;
    text-align: center;
    max-width: 600px;
}

.connections-description p {
    margin: 0;
    line-height: 1.4;
}

.connections-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.connect-button {
    background: #075cfb;
    box-sizing: border-box;
    display: flex;
    gap: 24px;
    height: 40px;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0 24px;
    position: relative;
    border-radius: 100px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.connect-button:hover {
    background: #0056e6;
}

.connect-button span {
    font-family: 'gilroy_medium', sans-serif;
    line-height: 1.2;
    position: relative;
    flex-shrink: 0;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connect-button img {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Scheduled Messages */
.scheduled-messages-card {
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    flex-shrink: 0;
    width: 1054px;
}

.scheduled-messages-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.scheduled-message-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #E5EAF0;
}

.scheduled-message-card:last-child {
    border-bottom: none;
}

.scheduled-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scheduled-message-emoji {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.scheduled-message-timestamp {
    font-family: 'gilroy_medium', sans-serif;
    font-size: 12px;
    color: #64748B;
}

.scheduled-message-error-pill {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'gilroy_medium', sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.scheduled-message-body {
    font-family: 'gilroy_medium', sans-serif;
    font-size: 14px;
    color: #0F172A;
    line-height: 1.4;
    margin: 4px 0;
}

.scheduled-message-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'gilroy_medium', sans-serif;
    font-size: 12px;
    color: #64748B;
}

.scheduled-message-recipient-count {
    font-weight: 500;
}

.scheduled-empty {
    padding: 40px 20px;
    color: #64748B;
    font-family: 'gilroy_medium', sans-serif;
    font-size: 14px;
    text-align: center;
}

/* Sent Messages */
.sent-messages-card {
    background: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    flex-shrink: 0;
    width: 1054px;
}

.sent-messages-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.sent-message-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #E5EAF0;
}

.sent-message-card:last-child {
    border-bottom: none;
}

.sent-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sent-message-emoji {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.sent-message-timestamp {
    font-family: 'gilroy_medium', sans-serif;
    font-size: 12px;
    color: #64748B;
}

.sent-message-body {
    font-family: 'gilroy_medium', sans-serif;
    font-size: 14px;
    color: #0F172A;
    line-height: 1.4;
    margin: 4px 0;
}

.sent-message-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'gilroy_medium', sans-serif;
    font-size: 12px;
    color: #64748B;
}

.sent-message-recipient-count {
    font-weight: 500;
}

.sent-empty {
    padding: 40px 20px;
    color: #64748B;
    font-family: 'gilroy_medium', sans-serif;
    font-size: 14px;
    text-align: center;
}

/* Compact connection status pill */
.connection-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8F5E9;
    /* soft green */
    color: #1B5E20;
    /* dark green text */
    border-radius: 999px;
    padding: 6px 10px;
    height: 28px;
    font-size: 12px;
    font-family: 'gilroy_medium', sans-serif;
}

.connection-status-pill img {
    width: 14px;
    height: 14px;
}

/* Chat Controls */
.communications-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 10;
}

.control-btn {
    background: #E7EDF3;
    border: none;
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: none;
    position: relative;
    border-radius: 24px;
}

.control-btn:hover {
    background: #DCE8F5;
    transform: scale(1.02);
}

.control-btn.active {
    background: #DCE8F5;
}

.control-btn img {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}







/* Responsive Design */
@media (max-width: 1200px) {

    .communications-header-section,
    .connections-card,
    .sent-messages-card {
        width: 100%;
        max-width: 1054px;
    }

    .communications-content-panel {
        padding: 40px 20px;
    }

    .connections-card {
        padding: 60px 80px;
    }
}

@media (max-width: 768px) {
    .communications-content-panel {
        gap: 60px;
        padding: 30px 20px;
    }

    .communications-title-text {
        font-size: 36px;
    }

    .connections-card,
    .sent-messages-card {
        padding: 40px 40px;
    }

    .connections-card-content {
        gap: 48px;
        padding: 0 20px;
    }

    .connections-description {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .communications-content-panel {
        gap: 40px;
        padding: 20px 15px;
    }

    .communications-title-text {
        font-size: 28px;
    }

    .connections-card,
    .sent-messages-card {
        padding: 30px 20px;
    }

    .connections-card-content {
        gap: 32px;
        padding: 0 15px;
    }

    .connections-title {
        font-size: 18px;
    }

    .connections-description {
        font-size: 16px;
    }
}