/* Reset and Base Styles */
* {
    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: 600px;
    margin: 0 auto;
}

/* Header Styles */
header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Status Bar */
.status-bar {
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status-bar.online {
    background: #10b981;
    color: white;
}

.status-bar.offline {
    background: #ef4444;
    color: white;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn-primary {
    background: #4285f4;
    color: white;
}

.btn-primary:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
}

.btn-approve {
    background: #10b981;
    color: white;
    font-size: 1.1rem;
}

.btn-approve:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-deny {
    background: #ef4444;
    color: white;
    font-size: 1.1rem;
}

.btn-deny:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Visitor Alert Card */
.visitor-card {
    border: 3px solid #4285f4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }
}

.visitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.visitor-header h2 {
    color: #4285f4;
}

.time-badge {
    background: #f3f4f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

.visitor-info {
/* Small Action Buttons for Recent Visitors */
.visitor-item-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-approve-small {
    background: #10b981;
    color: white;
}

.btn-approve-small:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-deny-small {
    background: #ef4444;
    color: white;
}

.btn-deny-small:hover {
    background: #dc2626;
    transform: scale(1.05);
}

    margin-bottom: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    text-align: center;
}

.visitor-name {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 10px;
}

.visitor-status {
    color: #6b7280;
    font-size: 1rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Recent Visitors List */
.visitor-list {
    max-height: 400px;
    overflow-y: auto;
}

.visitor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #d1d5db;
}

.visitor-item.approved {
    border-left-color: #10b981;
}

.visitor-item.denied {
    border-left-color: #ef4444;
}

.visitor-item-info {
    flex: 1;
}

.visitor-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.visitor-item-time {
    font-size: 0.85rem;
    color: #6b7280;
}

.visitor-item-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

.badge-denied {
    background: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* Status Messages */
.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Info Card */
.info-card {
    background: #f0f9ff;
    border-left: 4px solid #4285f4;
}

.info-card h3 {
    color: #1e40af;
    margin-bottom: 15px;
}

.info-card ol {
    margin-left: 20px;
}

.info-card li {
    margin-bottom: 10px;
    color: #1f2937;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 20px;
    }

    .visitor-name {
        font-size: 1.5rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}