/* DoliSMS Module Styles */

/* Platform Selection */
.dolisms-platform-selection {
    max-width: 1000px;
    margin: 0 auto;
}

/* Platform Grid */
.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* Platform Card */
.platform-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.platform-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.platform-card.configured {
    border-color: #00a32a;
    background: #f8fdf8;
}

.platform-card.configured::before {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    background: #00a32a;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Platform Icon */
.platform-icon {
    margin: 0 auto 16px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon img {
    max-width: 240px;
    height: auto;
    border-radius: 8px;
}

/* Platform Details */
.platform-name {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 18px;
    text-align: center;
}

.platform-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: center;
    min-height: 40px;
}

.platform-features {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    text-align: center;
    min-height: 32px;
}

.platform-actions {
    text-align: center;
}

.platform-status {
    font-size: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.platform-status.configured {
    color: #00a32a;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .platform-card {
        flex: 0 0 calc(50% - 20px);
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .platform-card {
        flex: 0 0 100%;
    }
}

.webhook-url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.webhook-url-container input[readonly] {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.webhook-url-container button {
    white-space: nowrap;
    min-width: 80px;
}

.webhook-url-container button:hover {
    background-color: #0056b3 !important;
}
