/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4A90E2;
    text-decoration: none;
}

.logo i {
    color: #7ED321;
    margin-right: 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #666;
    font-size: 0.9rem;
}

.btn-signout {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-signout:hover {
    background: #f0f0f0;
    color: #333;
}

/* Debug Toggle (Staging Only) */
.debug-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(126, 211, 33, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(126, 211, 33, 0.3);
}

.debug-label {
    font-size: 0.8rem;
    color: #4A90E2;
    font-weight: 600;
}

.debug-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.debug-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.debug-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.debug-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.debug-switch input:checked + .debug-slider {
    background-color: #7ED321;
}

.debug-switch input:checked + .debug-slider:before {
    transform: translateX(20px);
}

.debug-status {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.debug-status.on {
    color: #7ED321;
}

.debug-status.off {
    color: #999;
}

/* Main Content */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #333;
}

.btn-create {
    background: #7ED321;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-create:hover {
    background: #6BB91C;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 211, 33, 0.3);
}

/* Templates List */
.templates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.template-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.template-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.template-id {
    font-size: 0.9rem;
    color: #666;
    font-family: 'Courier New', monospace;
}

.btn-edit {
    background: #4A90E2;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background: #357ABD;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .template-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}