* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #20c997 0%, #1a9b7a 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.session-selector {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.session-selector h3 {
    margin-bottom: 15px;
    color: #333;
}

.session-input {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.session-input input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
}

.session-input input:focus {
    outline: none;
    border-color: #20c997;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
}

.status-indicator.connected {
    background: #28a745;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.card-header i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.card-header h3 {
    font-size: 1.3rem;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.btn {
    background: linear-gradient(135deg, #20c997 0%, #1a9b7a 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.btn.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn.success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn-group .btn {
    flex: 1;
}

.response-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #20c997;
    max-height: 400px;
    overflow-y: auto;
}

.response-container.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.response-container.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.response-container pre {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.icon-info { background: linear-gradient(135deg, #20c997 0%, #1a9b7a 100%); }
.icon-delete { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }
.icon-download { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.icon-forward { background: linear-gradient(135deg, #6f42c1 0%, #6610f2 100%); }
.icon-mentions { background: linear-gradient(135deg, #fd7e14 0%, #e63946 100%); }
.icon-order { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }
.icon-payment { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.icon-quote { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.icon-react { background: linear-gradient(135deg, #e83e8c 0%, #d91a72 100%); }
.icon-reply { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); }
.icon-star { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }

    .session-input {
        flex-direction: column;
        align-items: stretch;
    }
}