* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.status-section,
.alerts-section,
.deals-section,
.subscription-section,
.info-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-card {
    text-align: center;
}

.status-card h3 {
    margin-bottom: 15px;
    color: #667eea;
}

#system-status p {
    margin: 10px 0;
    font-size: 1.1em;
}

#system-status span {
    font-weight: bold;
    color: #667eea;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4em;
}

h4 {
    color: #764ba2;
    margin: 15px 0 10px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: #00C851;
    color: white;
}

.btn-success:hover {
    background: #00a943;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 200, 81, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.alert-item {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid #ff4757;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    animation: slideIn 0.3s ease;
}

.alert-item.starting {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-left-color: #00C851;
}

.alert-item.ending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #ffa502;
}

.alert-item.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.alert-badge.starting {
    background: #00C851;
    color: white;
}

.alert-badge.ending {
    background: #ffa502;
    color: white;
}

.alert-badge.active {
    background: #3b82f6;
    color: white;
}

.alert-item h4 {
    margin: 10px 0 5px 0;
    color: #333;
}

.alert-item p {
    margin: 5px 0;
    color: #666;
}

.deal-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.deal-item h4 {
    margin-bottom: 8px;
    color: #333;
}

.deal-item p {
    margin: 5px 0;
    color: #666;
    font-size: 0.95em;
}

.deal-date {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    margin-top: 5px;
}

.subscription-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.subscription-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
}

.subscribed-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    background: #22c55e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

#subscribed-email {
    color: #166534;
    font-weight: 500;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

#email-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#email-input:focus {
    outline: none;
    border-color: #667eea;
}

.gilfoyle-mode {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1em;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.tooltip {
    font-size: 0.85em;
    color: #999;
    margin-left: 10px;
}

#subscription-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

#subscription-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#subscription-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 30px;
    font-style: italic;
}

.info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.info-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-section li {
    margin: 8px 0;
}

.info-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.info-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .status-section,
    .alerts-section,
    .deals-section,
    .subscription-section,
    .info-section {
        padding: 15px;
    }
}
