/* Main Layout with Sidebar */
main {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    padding: 10px;
    height: 100%;
    overflow: hidden;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

/* Auth Sidebar */
.auth-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: auto;
    max-height: 100%;
    overflow-y: auto;
}

/* Auth & License Styles */
.auth-message {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
}

.user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-email {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
}

.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: #FFC107;
}

.progress-fill.danger {
    background: #F44336;
}

.upgrade-box {
    margin-top: 10px;
    padding: 10px;
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    border-radius: 8px;
    text-align: center;
}

.upgrade-box p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #E65100;
    font-weight: bold;
}

.btn-premium {
    background: linear-gradient(45deg, #FF6F00, #FFCA28);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

.btn-premium:hover {
    transform: scale(1.05);
}

.pro-badge {
    text-align: center;
    padding: 5px;
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    border-radius: 6px;
    color: #2E7D32;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Mobile Responsiveness for Auth */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        overflow-y: visible;
    }

    .auth-sidebar {
        width: 100%;
        order: -1;
        margin-bottom: 15px;
        flex-shrink: 1;
    }

    .content-wrapper {
        width: 100%;
        height: auto;
        overflow: visible;
    }
}
