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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.status-connected {
    background: #10b981;
}

.status-disconnected {
    background: #ef4444;
}

.status-error {
    background: #f59e0b;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card h2 {
    margin-bottom: 20px;
    color: #667eea;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.secondary-btn {
    width: auto;
    padding: 10px 20px;
    background: #6b7280;
    font-size: 0.9rem;
}

#notifications-container,
#submissions-container {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item,
.submission-item {
    padding: 16px;
    background: #f3f4f6;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    margin-bottom: 12px;
}

.notification-header,
.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timestamp {
    font-size: 0.8rem;
    color: #6b7280;
}

.email {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.message {
    margin-top: 8px;
    color: #374151;
}

.empty-state,
.loading,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.error {
    color: #ef4444;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.count {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 16px;
}

.submissions-list {
    margin-top: 16px;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

footer a:hover {
    border-bottom-color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
